import 'dart:typed_data'; /// Stub File class for web platform class File { final String path; File(this.path); Future readAsBytes() async { throw UnsupportedError('File operations are not supported on web. Use fromAsset or fromHttp instead.'); } Future readAsString() async { throw UnsupportedError('File operations are not supported on web. Use fromAsset or fromHttp instead.'); } }