detect method

  1. @override
Future<Set<Capability>> detect()
override

Performs the capability detection process

Implementation

@override
Future<Set<Capability>> detect() async {
  final colorEnv = (Platform.environment['COLORTERM'] ?? '');
  final trueColorSupport = colorEnv.contains(_trueColorsRegex);
  if (trueColorSupport) return {Capability.trueColors};
  return <Capability>{};
}