onGood method

void onGood(
  1. void fx(
    1. A value
    )
)

Implementation

void onGood(void Function(A value) fx) {
  if (_value != null) {
    fx.call(_value);
  }
}