Failure constructor

const Failure(
  1. String message, [
  2. String? stack
])

Builds a failure from a readable message and optional stack frames.

Implementation

const Failure(this.message, [this.stack]);