angel3_model 8.2.0 copy "angel3_model: ^8.2.0" to clipboard
angel3_model: ^8.2.0 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
160
points
5.07k
downloads

Publisher

verified publisherdukefirehawk.com

Weekly Downloads

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