Failure<T> constructor

const Failure<T>(
  1. Object? error
)

Creates a Failure with the given error.

Implementation

const Failure(this.error);