DuoCapabilities class

Publicly reported display and fold-related capabilities.

Constructors

DuoCapabilities({required bool supportsHingeAngle, required bool supportsFoldPosture, required bool supportsDisplayRegions, required bool supportsDisplayChanges, required bool supportsMultipleDisplays, required bool supportsSafeAreaInsets})
Creates a capability snapshot.
const
DuoCapabilities.fromMap(Map<Object?, Object?> map)
Decodes known capability fields; absent fields default to false.
factory
DuoCapabilities.unsupported()
A snapshot indicating that no optional capability is available.
const

Properties

hashCode → int
The hash code for this object.
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
supportsDisplayChanges → bool
final
supportsDisplayRegions → bool
final
supportsFoldPosture → bool
final
supportsHingeAngle → bool
final
supportsMultipleDisplays → bool
final
supportsSafeAreaInsets → bool
final

Methods

copyWith({bool? supportsHingeAngle, bool? supportsFoldPosture, bool? supportsDisplayRegions, bool? supportsDisplayChanges, bool? supportsMultipleDisplays, bool? supportsSafeAreaInsets}) → DuoCapabilities
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, Object>
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override