colors property

KiteColors get colors

Implementation

KiteColors get colors {
  final colors = Theme.of(this).extension<KiteColors>();
  if (colors != null) return colors;

  throw FlutterError.fromParts([
    ErrorSummary('KiteColors is not registered in ThemeData.extensions.'),
    ErrorDescription(
      'A widget requested context.colors, but the active ThemeData does not '
      'contain a KiteColors extension.',
    ),
    ErrorHint(
      'Build the app theme with KiteTheme.use(...) or register KiteColors '
      'in ThemeData.extensions.',
    ),
  ]);
}