1.0.2
This commit is contained in:
parent
eb1c5f7df2
commit
d663c99582
4 changed files with 11 additions and 2 deletions
|
@ -1,3 +1,6 @@
|
|||
# 1.0.2
|
||||
* `idAsInt` now uses `int.tryParse`.
|
||||
|
||||
# 1.0.1
|
||||
* Add `idAsInt`.
|
||||
|
||||
|
|
4
analysis_options.yaml
Normal file
4
analysis_options.yaml
Normal file
|
@ -0,0 +1,4 @@
|
|||
include: package:pedantic/analysis_options.yaml
|
||||
analyzer:
|
||||
strong-mode:
|
||||
implicit-casts: false
|
|
@ -12,5 +12,5 @@ class Model {
|
|||
Model({this.id, this.createdAt, this.updatedAt});
|
||||
|
||||
/// Returns the [id], parsed as an [int].
|
||||
int get idAsInt => int.parse(id);
|
||||
int get idAsInt => int.tryParse(id);
|
||||
}
|
||||
|
|
|
@ -1,7 +1,9 @@
|
|||
name: angel_model
|
||||
version: 1.0.1
|
||||
version: 1.0.2
|
||||
description: Angel's basic data model class, no longer with the added weight of the whole framework.
|
||||
author: Tobe O <thosakwe@gmail.com>
|
||||
homepage: https://github.com/angel-dart/model
|
||||
environment:
|
||||
sdk: ">=1.8.0 <3.0.0"
|
||||
dev_dependencies:
|
||||
pedantic: ^1.0.0
|
||||
|
|
Loading…
Reference in a new issue