onUpdate method

  1. @protected
Future<T> onUpdate(
  1. T newData
)

Called when trying to update the data. Must return the new data, or throw and error when it's failed to update.

Implementation

@protected
Future<T> onUpdate(T newData) async {
  return newData;
}