findById method

  1. @override
Future<T?> findById(
  1. String id
)
override

Returns the entity with the given id from the database.

Implementation

@override
Future<T?> findById(String id) {
  if (!_data.containsKey(id)) {
    return Future.value(null);
  }
  var value = _data[id]!;
  return Future.value(analysis.decode(EntityIntermediate(id, value)));
}