isError property Null safety

bool isError

Returns whether this instance is an error

Implementation

bool get isError => this is GameError;