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})
A const constructor for an immutable ViewConfiguration.
const

Properties

devicePixelRatio double
The pixel density of the output surface.
final
geometry Rect
The geometry requested for the view on the screen or within its parent window, in logical pixels.
final
hashCode int
The hash code for this object. [...]
read-only, inherited
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-only, inherited
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}) 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