share static method

Future<void> share(
  1. String path,
  2. String type
)

method to share to Instagram It uses the ACTION_SEND Intent on Android path is file path type "image" ,"video"

Implementation

static Future<void> share(String path, String type) {
  assert(path.isNotEmpty);
  final Map<String, dynamic> params = <String, dynamic>{
    'path': path,
    'type': type,
  };
  return _channel.invokeMethod('share', params);
}