isValid method

  1. @override
bool isValid()
override

Validates the parameter.

Returns true if the parameter is valid, false otherwise.

Implementation

@override
bool isValid() {
  return imageUrl.isNotEmpty && Uri.tryParse(imageUrl) != null;
}