GeofenceClient constructor
GeofenceClient({
- required ResourceType type,
- required String id,
- String idV1 = "",
- required String name,
- bool? isAtHome,
Creates a GeofenceClient object.
Implementation
GeofenceClient({
required super.type,
required super.id,
this.idV1 = "",
required String name,
this.isAtHome,
}) : assert(idV1.isEmpty || Validators.isValidIdV1(idV1),
'"$idV1" is not a valid `idV1`'),
assert(name.isEmpty || Validators.isValidName(name),
"`name` must be between 1 and 32 characters (inclusive)"),
_name = name,
_originalName = name,
_originalIsAtHome = isAtHome;