Failure<T> constructor

const Failure<T>(
  1. String message, {
  2. T? data,
})

Implementation

const Failure(this.message, {this.data});