resolveFrom method Null safety

CupertinoTextThemeData resolveFrom(
  1. BuildContext context
)

Returns a copy of the current CupertinoTextThemeData with all the colors resolved against the given BuildContext.

If any of the InheritedWidgets required to resolve this CupertinoTextThemeData is not found in context, any unresolved CupertinoDynamicColors will use the default trait value (Brightness.light platform brightness, normal contrast, CupertinoUserInterfaceLevelData.base elevation level).

Implementation

CupertinoTextThemeData resolveFrom(BuildContext context) {
  return CupertinoTextThemeData._raw(
    _defaults.resolveFrom(context),
    CupertinoDynamicColor.maybeResolve(_primaryColor, context),
    _resolveTextStyle(_textStyle, context),
    _resolveTextStyle(_actionTextStyle, context),
    _resolveTextStyle(_tabLabelTextStyle, context),
    _resolveTextStyle(_navTitleTextStyle, context),
    _resolveTextStyle(_navLargeTitleTextStyle, context),
    _resolveTextStyle(_navActionTextStyle, context),
    _resolveTextStyle(_pickerTextStyle, context),
    _resolveTextStyle(_dateTimePickerTextStyle, context),
  );
}