DeviceTypeConfig constructor

DeviceTypeConfig({
  1. required ScreenInfo screenInfo,
  2. required double designMinWidth,
  3. required double designMaxWidth,
  4. required double designMinHeight,
  5. required double designMaxHeight,
  6. required TargetDeviceType targetDeviceType,
})

Constructs a DeviceTypeConfig instance with the given parameters.

screenInfo provides information about the screen dimensions and orientation. designMinWidth, designMaxWidth, designMinHeight, and designMaxHeight specify the design dimensions for adaptation. targetDeviceType specifies the target device type for adaptation.

Implementation

DeviceTypeConfig({
  required this.screenInfo,
  required this.designMinWidth,
  required this.designMaxWidth,
  required this.designMinHeight,
  required this.designMaxHeight,
  required this.targetDeviceType,
}) {
  _initializeDeviceType();
}