getInitialSharing method

  1. @override
Future<List<SharedFile>> getInitialSharing()
override

Implementation

@override
Future<List<SharedFile>> getInitialSharing() async {
  final json = await methodChannel.invokeMethod('getInitialSharing');
  if (json == null) return [];
  final encoded = jsonDecode(json);
  return encoded
      .map<SharedFile>((file) => SharedFile.fromJson(file))
      .toList();
}