Validators class
Used throughout the app to validate data.
Constructors
Properties
- hashCode → int
- 
  The hash code for this object.
  no setterinherited
- 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
- 
  toString() → String 
- 
  A string representation of this object.
  inherited
Operators
- 
  operator ==(Object other) → bool 
- 
  The equality operator.
  inherited
Static Methods
- 
  isUnitInterval(num num) → bool 
- 
  Returns trueif the givennumis between 0 and 1 (inclusive).
- 
  isValidGradient(List< LightColorXy> ? points) → bool
- Used when finalizing a gradient to send with PUT or POST.
- 
  isValidGradientDraft(List< LightColorXy> ? points) → bool
- Used to verify that the gradient is valid to be used as a draft.
- 
  isValidId(String id) → bool 
- 
  Returns trueif the givenidconforms to the proper regex pattern.
- 
  isValidIdV1(String idV1) → bool 
- 
  Returns trueif the givenidV1conforms to the proper regex pattern or if it is empty.
- 
  isValidIpAddress(String ipAddress) → bool 
- 
  Returns trueif the givenipAddressconforms to the proper regex pattern.
- 
  isValidLatitude(double latitude) → bool 
- 
  Returns trueif the givenlatitudeis between -90 and 90 (inclusive).
- 
  isValidLongitude(double longitude) → bool 
- 
  Returns trueif the givenlongitudeis between -180 and 180 (inclusive).
- 
  isValidMacAddress(String macAddress) → bool 
- 
  Returns trueif the givenmacAddressconforms to the proper regex pattern.
- 
  isValidMired(int mired) → bool 
- 
  Returns trueif the givenmiredis between 153 and 500 (inclusive).
- 
  isValidMirek(int mirek) → bool 
- 
  Returns trueif the givenmirekis between 153 and 500 (inclusive).
- 
  isValidName(String name) → bool 
- 
  Returns trueif the length ofnameis between 1 and 32 characters (inclusive).
- 
  isValidPercentage(num percentage) → bool 
- 
  Returns trueif the givenpercentageis between 0 and 100 (inclusive).
- 
  isValidScriptId(String scriptId) → bool 
- 
  Returns trueif the givenscriptIdconforms to the proper regex pattern.
- 
  isValidScriptVersion(String scriptVersion) → bool 
- 
  Returns trueif the givenscriptVersionconforms to the proper regex pattern.
- 
  isValidSoftwareVersion(String softwareVersion) → bool 
- 
  Returns trueif the givensoftwareVersionconforms to the proper regex pattern.
- 
  isValidValue<T> (T value, List< T> validValues) → bool
- 
  Returns trueif the the givenvalueis found withinvalidValuesor if thevalidValueslist is empty andvalueis empty as well.