get method

  1. @override
Future<Model> get(
  1. String id
)
override

Returns the entry with the specified id.

Implementation

@override
Future<Model> get(String id) async {
  final Map<String, dynamic> data = (_box.get(id) as Map).cast<String, dynamic>();
  return Model(
      id: id, userId: data[Model.userIdKey], data: data[Model.dataKey]);
}