static Source getSource(String url, {bool isFile = false}) { if (url.contains('http')) return UrlSource(url); if (isFile) { return DeviceFileSource(url); } return AssetSource(url); }