error<T> static method

Result<T?> error<T>(
  1. String message
)

Implementation

static Result<T?> error<T>(String message) {
  return _Result<T?>(null, ResultType.error, message);
}