Validators class

Utility class for validating WhatsApp-related data.

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

validateCoordinates(double latitude, double longitude) bool
Validates geographic coordinates.
validateLanguageCode(String languageCode) bool
Validates language code format.
validateMediaUrl(String url) bool
Validates media URL format.
validateMessage(Message message) bool
Validates a message object before sending.
validatePhoneNumber(String phoneNumber) bool
Validates a phone number format for WhatsApp.
validateTemplateName(String templateName) bool
Validates template name format.
validateTextContent(String text) bool
Validates text message content.