This commit is contained in:
Tobe O 2019-03-28 20:51:02 -04:00
parent eb1c5f7df2
commit d663c99582
4 changed files with 11 additions and 2 deletions

View file

@ -1,3 +1,6 @@
# 1.0.2
* `idAsInt` now uses `int.tryParse`.
# 1.0.1
* Add `idAsInt`.

4
analysis_options.yaml Normal file
View file

@ -0,0 +1,4 @@
include: package:pedantic/analysis_options.yaml
analyzer:
strong-mode:
implicit-casts: false

View file

@ -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);
}

View file

@ -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