copyWith method

ViewportState copyWith({
  1. List<DeviceInfo>? devices,
  2. Orientation? orientation,
  3. bool? hasFrame,
})

Implementation

ViewportState copyWith({
  List<DeviceInfo>? devices,
  Orientation? orientation,
  bool? hasFrame,
}) {
  return ViewportState(
    devices: devices ?? this.devices,
    orientation: orientation ?? this.orientation,
    hasFrame: hasFrame ?? this.hasFrame,
  );
}