outcome property

Object? get outcome

The model's outcome when it is an OutcomeModel, else null.

Implementation

Object? get outcome => switch (model) {
      final OutcomeModel<Object?> m => m.outcome,
      _ => null,
    };