ErrorState constructor

const ErrorState(
  1. Object error, {
  2. String? message,
  3. StackTrace? stackTrace,
})

Creates an ErrorState with the given error, optional message, and stackTrace.

Implementation

const ErrorState(this.error, {this.message, this.stackTrace});