typography property
KiteTypography
get
typography
Implementation
KiteTypography get typography {
final typography = Theme.of(this).extension<KiteTypography>();
if (typography != null) return typography;
throw FlutterError.fromParts([
ErrorSummary(
'KiteTypography is not registered in ThemeData.extensions.',
),
ErrorDescription(
'A widget requested context.typography, but the active ThemeData does '
'not contain a KiteTypography extension.',
),
ErrorHint(
'Build the app theme with KiteTheme.use(...) or register '
'KiteTypography in ThemeData.extensions.',
),
]);
}