Result<T>.success constructor

Result<T>.success(
  1. T result, [
  2. String? message
])

Implementation

factory Result.success(T result, [String? message]) {
//    assert(result != null);
  return _Result(result, ResultType.success, message);
}