changeValue method

  1. @override
Future<FollowingDashboardModel> changeValue(
  1. String documentId,
  2. String fieldName,
  3. num changeByThisValue
)
override

Implementation

@override
Future<FollowingDashboardModel> changeValue(
    String documentId, String fieldName, num changeByThisValue) {
  return reference
      .changeValue(documentId, fieldName, changeByThisValue)
      .then((newValue) {
    fullCache[documentId] = newValue;
    return newValue!;
  });
}