Failure constructor

const Failure(
  1. String error
)

Creates a failed result with the given error description.

Implementation

const Failure(this.error);