get method

  1. @override
Future<FollowingDashboardModel?> get(
  1. String? id, {
  2. dynamic onError(
    1. Exception
    )?,
})
override

Retrieve a FollowingDashboardModel with it's id, cached

Implementation

@override
Future<FollowingDashboardModel?> get(String? id,
    {Function(Exception)? onError}) async {
  var value = fullCache[id];
  if (value != null) return refreshRelations(value);
  value = await reference.get(id, onError: onError);
  fullCache[id] = value;
  return value;
}