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

outdated

Angel's 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(
      {String? id,
      this.text,
      this.isComplete,
      DateTime? createdAt,
      DateTime? updatedAt})
      : super(id: id, createdAt: createdAt, updatedAt: updatedAt);
}
0
likes
0
pub points
36%
popularity

Publisher

verified publisherdukefirehawk.com

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

Homepage
Repository (GitHub)
View/report issues

License

unknown (LICENSE)

More

Packages that depend on angel3_model