isValid property

bool get isValid

Vérifie si l'image est valide (a soit un fichier, soit une URL)

Implementation

bool get isValid => file != null || (url != null && url!.isNotEmpty);