resolveFrom method Null safety

  1. @override
CupertinoThemeData resolveFrom(
  1. BuildContext context
)
override

Returns a new theme data with all its colors resolved against the given BuildContext.

Called by CupertinoTheme.of to resolve colors defined in the retrieved CupertinoThemeData.

Implementation

@override
CupertinoThemeData resolveFrom(BuildContext context) {
  // Only the cupertino override theme part will be resolved.
  // If the color comes from the material theme it's not resolved.
  return MaterialBasedCupertinoThemeData._(
    _materialTheme,
    _cupertinoOverrideTheme.resolveFrom(context),
  );
}