toString method

  1. @override
String toString()
override

Convertit en chaîne pour le débogage

Implementation

@override
String toString() {
  if (file != null) return 'File: ${file!.path}';
  if (url != null) return 'URL: $url';
  return 'No image';
}