of static method

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