init static method

DeviceConfig init({
  1. DimensionScaleMode scaleMode = DimensionScaleMode.minimum,
  2. Device watch = const Device.watch(),
  3. Device mobile = const Device.mobile(),
  4. Device tablet = const Device.tablet(),
  5. Device laptop = const Device.laptop(),
  6. Device desktop = const Device.desktop(),
  7. Device tv = const Device.tv(),
})

Implementation

static DeviceConfig init({
  DimensionScaleMode scaleMode = DimensionScaleMode.minimum,
  Device watch = const Device.watch(),
  Device mobile = const Device.mobile(),
  Device tablet = const Device.tablet(),
  Device laptop = const Device.laptop(),
  Device desktop = const Device.desktop(),
  Device tv = const Device.tv(),
}) {
  _i = DeviceConfig(
    scaleMode: scaleMode,
    watch: watch,
    mobile: mobile,
    tablet: tablet,
    laptop: laptop,
    desktop: desktop,
    tv: tv,
  );
  return i;
}