SizeConfig constructor

SizeConfig(
  1. BuildContext context, [
  2. bool detectScreen = true,
  3. DeviceConfig config = const DeviceConfig(),
  4. 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;