Result<T>.error constructor

const Result<T>.error(
  1. Object error
)

Creates a new error Result with the given error.

Implementation

const Result.error(Object this.error) : _result = null;