switchActiveColor method

Color? switchActiveColor(
  1. BuildContext context, {
  2. Set<MaterialState>? materialStates,
  3. Map<String, dynamic>? extraInfo,
})

Implementation

Color? switchActiveColor(BuildContext context, {Set<MaterialState>? materialStates, Map<String, dynamic>? extraInfo}) {
  materialStates ??= <MaterialState>{};
  return HexColor.fromHex('#1871e3').withAlpha(materialStates.isDisabled ? 100 : 255);
}