DeviceInfo.withValues constructor Null safety

DeviceInfo.withValues(
  1. {required double width,
  2. required double height,
  3. required EdgeInsets viewPadding}
)

Named constructor to create DeviceInfo without a BuildContext.

Implementation

DeviceInfo.withValues(
    {required this.width, required this.height, required this.viewPadding});