get method
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]);
}