Flutter: Download a file

Downloads a file.

Examples

Download file

final Uint8List file = await supabase
  .storage
  .from('avatars')
  .download('avatar1.png');

With transform

final Uint8List file = await supabase
  .storage
  .from('avatars')
  .download(
    'avatar1.png',
    transform: TransformOptions(
      width: 200,
      height: 200,
    ),
  );