ManagedProperty class Null safety

A managed property of a managed configuration.

The property must match one of the properties in the app restrictions schema of the product. Exactly one of the value fields must be populated, and it must match the property's type in the app restrictions schema.

Constructors

ManagedProperty({String? key, bool? valueBool, ManagedPropertyBundle? valueBundle, List<ManagedPropertyBundle>? valueBundleArray, int? valueInteger, String? valueString, List<String>? valueStringArray})
ManagedProperty.fromJson(Map json_)

Properties

hashCode int
The hash code for this object.
read-onlyinherited
key String?
The unique key that identifies the property.
read / write
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
valueBool bool?
The boolean value - this will only be present if type of the property is bool.
read / write
valueBundle ManagedPropertyBundle?
The bundle of managed properties - this will only be present if type of the property is bundle.
read / write
valueBundleArray List<ManagedPropertyBundle>?
The list of bundles of properties - this will only be present if type of the property is bundle_array.
read / write
valueInteger int?
The integer value - this will only be present if type of the property is integer.
read / write
valueString String?
The string value - this will only be present if type of the property is string, choice or hidden.
read / write
valueStringArray List<String>?
The list of string values - this will only be present if type of the property is multiselect.
read / write

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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