storage_access

Creator: coderz1093

Last updated:

0 purchases

storage_access Image
storage_access Images

Languages

Categories

Add to Cart

Description:

storage access

storage_access #
Allow correct write/read of files as strings, using:

path_provider

Import:
import 'package:storage_access/storage_access.dart' as storage;
copied to clipboard
Write:
Returns Future<bool>, true if all okay
final fileWasSaved= await storage.write(
data: "I am very important data",
asFile: "how_to_prepare_horkers.xml"
);
if (fileWasSaved == false) beHeroAndFixIt();
copied to clipboard
Read:
Returns Future<String>, null on any error
final myTreasure= await storage.read(
fromFile: "how_to_prepare_horkers.xml"
);
if (myTreasure != null) cookHorkers();
copied to clipboard

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.