getRelationsForEntity method

  1. @override
Future<List<Relation>> getRelationsForEntity(
  1. String entityId
)
override

Get relations for entity.

Implementation

@override
Future<List<Relation>> getRelationsForEntity(String entityId) async {
  return _relations.values
      .where((r) => r.fromEntityId == entityId || r.toEntityId == entityId)
      .toList();
}