ifSuccess method
void
ifSuccess(
- void action(
- T value
Implementation
void ifSuccess(void Function(T value) action) {
if (isSuccess) {
action(_result as T);
}
}
void ifSuccess(void Function(T value) action) {
if (isSuccess) {
action(_result as T);
}
}