update method

dynamic update(
  1. T? newData
)

This will update the previous fetched result

Implementation

update(T? newData) {
  if (newData != null) {
    emit(
      ResourceState(
        status: ResourceStatus.success,
        data: newData,
        updatedAt: DateTime.now().millisecondsSinceEpoch,
      ),
    );
  }
}