update method
dynamic
update(
- 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,
),
);
}
}