createCustomStreamFromAssetsFile method

Future<int> createCustomStreamFromAssetsFile({
  1. required String path,
  2. required String tag,
  3. bool replace = false,
  4. bool playback = true,
})

Implementation

Future<int> createCustomStreamFromAssetsFile({
  required String path,
  required String tag,
  bool replace = false,
  bool playback = true,
}) async {
  Map<String, dynamic> arguments = {
    'assets': path,
    'tag': tag,
    'replace': replace,
    'playback': playback,
  };
  int code = await _channel.invokeMethod('createCustomStreamFromFile', arguments) ?? -1;
  return code;
}