[Error Facing][1]

This is the issue I am facing

Please review the code and let me know the error that I am getting thanks [1]: https://i.stack.imgur.com/HKg7s.jpg

Future<String> saveImage(Uint8List bytes) async {
    await [Permission.storage].request();
    final time = DateTime.now()
        .replaceAll('.', "-")
        .replaceAll(':', "-");
    final name = "screenshot_$time";
    final result = await ImageGallerySaver.saveImage(bytes, name: name);
    return result['filePath'];

  Future saveAndShare(Uint8List bytes) async {
    final directory = await getApplicationDocumentsDirectory();
    final image = File('${directory.path}/flutter.png');
    final text = "Save By Lottery App";
    await Share.shareFiles([image.path], text: text);