EndgameInfo.optional constructor

EndgameInfo.optional(
  1. {EndStatus endState = EndStatus.unset,
  2. Harmony harmony = Harmony.unset,
  3. bool harmonyAttempted = false,
  4. MatchResult matchResult = MatchResult.unset,
  5. TrapScored trapScored = TrapScored.unset,
  6. MicScored micScored = MicScored.unset}
)

Implementation

factory EndgameInfo.optional(
        {EndStatus endState = EndStatus.unset,
        Harmony harmony = Harmony.unset,
        bool harmonyAttempted = false,
        MatchResult matchResult = MatchResult.unset,
        TrapScored trapScored = TrapScored.unset,
        MicScored micScored = MicScored.unset}) =>
    EndgameInfo(
      harmonyAttempted: harmonyAttempted,
      matchResult: matchResult,
      endState: endState,
      harmony: harmony,
      trapScored: trapScored,
      micScored: micScored,
    );