dataOrNull property
TData?
get
dataOrNull
The data this result carries, if any. Prefer pattern matching; this exists for the cases where a nullable read is genuinely what you want.
Implementation
TData? get dataOrNull => switch (this) {
MutationSuccess<TData, TVariables>(:final data) => data,
_ => null,
};