isError property

bool isError

Whether the phase is of type AsyncError.

This conducts only a type check. If you want the flow analysis of Dart to work so that the type is promoted to AsyncError, check the type with the is operator instead.

if (phase is AsyncError) {
  print(phase.error);
}

Implementation

bool get isError => this is AsyncError;