switchInactiveTrackColor method

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

Implementation

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