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