MetaInfo constructor
This data will be used for the link preview.
Implementation
MetaInfo({required this.name, this.description, this.imageURL}) {
if (name.trim().length > 50) {
throw Exception('Name can be max 50 characters long');
}
if (description != null && description!.trim().length > 150) {
throw Exception('Description can be max. 150 characters long');
}
if (imageURL != null && !AppUtils().isValidURL(imageURL!)) {
throw Exception('Invalid imageURL: $imageURL');
}
}