switchTrackColor method

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

Implementation

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