ViewConfiguration class Null safety

An immutable view configuration.

Constructors

ViewConfiguration({FlutterView? window, double devicePixelRatio = 1.0, Rect geometry = Rect.zero, bool visible = false, WindowPadding viewInsets = WindowPadding.zero, WindowPadding viewPadding = WindowPadding.zero, WindowPadding systemGestureInsets = WindowPadding.zero, WindowPadding padding = WindowPadding.zero, GestureSettings gestureSettings = const GestureSettings(), List<DisplayFeature> displayFeatures = const <DisplayFeature>[]})
A const constructor for an immutable ViewConfiguration.
const

Properties

devicePixelRatio double
The pixel density of the output surface.
final
displayFeatures List<DisplayFeature>
Areas of the display that are obstructed by hardware features.
final
geometry Rect
The geometry requested for the view on the screen or within its parent window, in logical pixels.
final
gestureSettings GestureSettings
Additional configuration for touch gestures performed on this view.
final
hashCode int
The hash code for this object.
read-onlyinherited
padding WindowPadding
The view insets, as it intersects with ScreenConfiguration.padding for the screen it is on.
final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
systemGestureInsets WindowPadding
The view insets, as it intersects with ScreenConfiguration.systemGestureInsets for the screen it is on.
final
viewInsets WindowPadding
The view insets, as it intersects with Screen.viewInsets for the screen it is on.
final
viewPadding WindowPadding
The view insets, as it intersects with ScreenConfiguration.viewPadding for the screen it is on.
final
visible bool
Whether or not the view is currently visible on the screen.
final
window FlutterView?
The top level view into which the view is placed and its geometry is relative to.
final

Methods

copyWith({FlutterView? window, double? devicePixelRatio, Rect? geometry, bool? visible, WindowPadding? viewInsets, WindowPadding? viewPadding, WindowPadding? systemGestureInsets, WindowPadding? padding, GestureSettings? gestureSettings, List<DisplayFeature>? displayFeatures}) ViewConfiguration
Copy this configuration with some fields replaced.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited