angel3_model 8.1.1 copy "angel3_model: ^8.1.1" to clipboard
angel3_model: ^8.1.1 copied to clipboard

Angel3 basic data model class, no longer with the added weight of the whole framework.

example/main.dart

import 'package:angel3_model/angel3_model.dart';

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

class Todo extends Model {
  String? text;

  bool isComplete;

  Todo(
      {required String super.id,
      this.text,
      this.isComplete = false,
      super.createdAt,
      super.updatedAt});
}
0
likes
140
pub points
37%
popularity

Publisher

verified publisherdukefirehawk.com

Angel3 basic data model class, no longer with the added weight of the whole framework.

Homepage
Repository (GitHub)
View/report issues
Contributing

Documentation

API reference

License

BSD-3-Clause (LICENSE)

More

Packages that depend on angel3_model