platformOf static method
Platform from the nearest M3ETheme, else Theme or default.
Implementation
static TargetPlatform platformOf(BuildContext context) {
final M3EThemeData? theme = maybeOf(context);
if (theme?.platform != null) {
return theme!.platform!;
}
return Theme.of(context).platform;
}