errorOrNull property

Object? get errorOrNull

The error this result carries — set only on a MutationError, null on every other variant.

Implementation

Object? get errorOrNull => switch (this) {
      MutationError<TData, TVariables>(:final error) => error,
      _ => null,
    };