TeleOpInfo.optional constructor

TeleOpInfo.optional(
  1. {bool underStage = false,
  2. bool lobs = false,
  3. int scoredSpeaker = 0,
  4. int missedSpeaker = 0,
  5. int scoredAmp = 0,
  6. int piecesScored = 0,
  7. int missedAmp = 0}
)

Implementation

factory TeleOpInfo.optional(
        {bool underStage = false,
        bool lobs = false,
        int scoredSpeaker = 0,
        int missedSpeaker = 0,
        int scoredAmp = 0,
        int piecesScored = 0,
        int missedAmp = 0}) =>
    TeleOpInfo(
        underStage: underStage,
        lobs: lobs,
        scoredSpeaker: scoredSpeaker,
        missedSpeaker: missedSpeaker,
        scoredAmp: scoredAmp,
        missedAmp: missedAmp);