onSuccess method

SyneriseResult<T> onSuccess(
  1. void callback(
    1. T result
    )
)

Implementation

SyneriseResult<T> onSuccess(void Function(T result) callback) {
  if (result != null) {
    callback(result as T);
  }

  return this;
}