angel3_model 3.1.0
angel3_model: ^3.1.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 id,
      this.text,
      this.isComplete = false,
      DateTime? createdAt,
      DateTime? updatedAt})
      : super(id: id, createdAt: createdAt, updatedAt: updatedAt);
}
0
likes
130
pub points
67%
popularity

Publisher

dukefirehawk.com

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

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

More

Packages that depend on angel3_model