galileo_model 4.0.0 copy "galileo_model: ^4.0.0" to clipboard
galileo_model: ^4.0.0 copied to clipboard

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

example/main.dart

import 'package:galileo_model/galileo_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);
}
1
likes
135
points
28
downloads

Documentation

API reference

Publisher

verified publishergalileodart.com

Weekly Downloads

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

Repository (GitHub)
View/report issues

License

MIT (license)

More

Packages that depend on galileo_model