pickImages method

Future<List<String>> pickImages()

Launches the native gallery picker and returns the paths of the selected images.

Implementation

Future<List<String>> pickImages() async {
  try {
    final List<dynamic>? paths = await _channel.invokeMethod('pickImages');
    if (paths == null) return [];
    return paths.cast<String>();
  } on PlatformException {
    // debugPrint("Error picking images: ${e.message}");
    return [];
  }
}