provider method
Implementation
ImageProvider provider({
String? package,
AssetBundle? bundle,
}) {
final id = pathId;
if (id.asset) {
return AssetImage(id.path, package: package, bundle: bundle);
}
return FileImage(File(id.path));
}
ImageProvider provider({
String? package,
AssetBundle? bundle,
}) {
final id = pathId;
if (id.asset) {
return AssetImage(id.path, package: package, bundle: bundle);
}
return FileImage(File(id.path));
}