switchActiveTrackColor method

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

Implementation

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