Configuration.of constructor
Configuration.of(
- BuildContext context
Implementation
factory Configuration.of(BuildContext context) {
final mq = MediaQuery.of(context);
final locale = Localizations.localeOf(context);
final direction = Directionality.of(context);
return Configuration(
size: mq.size,
pixelRatio: mq.devicePixelRatio,
orientation: mq.orientation,
languageCode: locale.languageCode,
countryCode: locale.countryCode,
brightness: mq.platformBrightness,
platform: currentPlatform,
direction: direction,
);
}