onSuccess method
void
onSuccess(
- void block(
- T
Implementation
void onSuccess(void Function(T) block) {
switch (this) {
case ResourceSuccess():
{
block(data as T);
}
default:
{}
}
}