GeofenceClient constructor

GeofenceClient({
  1. required ResourceType type,
  2. required String id,
  3. String idV1 = "",
  4. required String name,
  5. 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;