SizeConfig constructor
SizeConfig(
- BuildContext context, [
- bool detectScreen = true,
- DeviceConfig config = const DeviceConfig(),
- Size? _requireSize,
Creates a SizeConfig instance with the provided context
, detectScreen
, config
, and optional _requireSize
.
Implementation
SizeConfig(
this.context, [
this.detectScreen = true,
this.config = const DeviceConfig(),
this._requireSize,
]) : screenSize = MediaQuery.of(context).size;