AsyncResult<T> constructor

AsyncResult<T>({
  1. void onSuccess(
    1. T? result
    )?,
  2. void onError(
    1. Exception e
    )?,
})

Implementation

AsyncResult({this.onSuccess, this.onError});