getColorTuple method

ColorTuple getColorTuple({
  1. bool primary = true,
})

primary == true : Gets foregroundPrimary and backgroundPrimary as ColorTuple. primary == false : Gets foregroundSecondary and backgroundSecondary as ColorTuple.

Implementation

ColorTuple getColorTuple({bool primary = true}) =>
    primary ? primaryTuple : secondaryTuple;