write function

Future<bool> write(
  1. {@required String data,
  2. @required String asFile}
)

Implementation

Future<bool> write({@required String data, @required String asFile}) async {
  return (File("${await _appDirPath}/$asFile")).writeAsString(data) != null;
}