angel_model 1.0.3

Dart native js
Flutter Android iOS web

Angel's basic data model class, no longer with the added weight of the whole framework.

example/main.dart

import 'package:angel_model/angel_model.dart';

void main() {
  var todo = Todo(id: '34', isComplete: false);
  print(todo.idAsInt == 34);
}

class Todo extends Model {
  String text;

  bool isComplete;

  Todo(
      {String id,
      this.text,
      this.isComplete,
      DateTime createdAt,
      DateTime updatedAt})
      : super(id: id, createdAt: createdAt, updatedAt: updatedAt);
}
0
likes
110
pub points
86%
popularity

Publisher

angel-dart.dev

Angel's basic data model class, no longer with the added weight of the whole framework.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

More

Packages that depend on angel_model