get abstract method

Future<Uint8List?> get(
  1. String path
)

Retrieve file contents as bytes.

Returns: The file contents as Uint8List, or null if not found.

final bytes = await disk.get('avatar.jpg');
if (bytes != null) {
  // Use the bytes
}

Implementation

Future<Uint8List?> get(String path);