of static method
SizeConfig
of(
- BuildContext context, {
- bool detectScreen = true,
- DeviceConfig config = const DeviceConfig(),
- Size? size,
Creates a SizeConfig instance with the provided parameters.
Example:
SizeConfig sizeConfig = SizeConfig.of(context, detectScreen: true, config: DeviceConfig(), size: customSize);
Implementation
static SizeConfig of(
BuildContext context, {
bool detectScreen = true,
DeviceConfig config = const DeviceConfig(),
Size? size,
}) {
return SizeConfig(context, detectScreen, config, size);
}