DeviceSelector class

Selector for a device group.

A selector consists of a set of conditions on the device that should all match (logical AND) to determine a device group eligibility. For instance, if a selector specifies RAM conditions, device model inclusion and device model exclusion, a device is considered to match if: device matches RAM conditions AND device matches one of the included device models AND device doesn't match excluded device models

Constructors

DeviceSelector({DeviceRam? deviceRam, List<DeviceId>? excludedDeviceIds, List<SystemFeature>? forbiddenSystemFeatures, List<DeviceId>? includedDeviceIds, List<SystemFeature>? requiredSystemFeatures})
DeviceSelector.fromJson(Map json_)

Properties

deviceRam DeviceRam?
Conditions on the device's RAM.
getter/setter pair
excludedDeviceIds List<DeviceId>?
Device models excluded by this selector, even if they match all other conditions.
getter/setter pair
forbiddenSystemFeatures List<SystemFeature>?
A device that has any of these system features is excluded by this selector, even if it matches all other conditions.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
includedDeviceIds List<DeviceId>?
Device models included by this selector.
getter/setter pair
requiredSystemFeatures List<SystemFeature>?
A device needs to have all these system features to be included by the selector.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

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