LocationConstraint class

Represents a location constraint for a calendar event.

Each instance holds a boolean flag indicating if the location is required, a flag suggesting a location, and a list of possible Location instances.

Constructors

LocationConstraint({bool? isRequired, bool? suggestLocation, List<Location?>? locations})
Creates a new instance of LocationConstraint.
LocationConstraint.fromJson(Map<String, dynamic> json)
Creates a new instance of LocationConstraint from a JSON object.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
isRequired bool?
Indicates whether a location is required for the event.
final
locations List<Location?>?
The list of possible Location instances for the event.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
suggestLocation bool?
Suggests a location for the event.
final

Methods

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

Operators

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