getSnapshotUri method

Future<String> getSnapshotUri(
  1. String profileToken
)

Implementation

// Future<String> getSnapshotUri(String profileToken) async =>
//     getSnapshotUri2(profileToken);

Future<String> getSnapshotUri(String profileToken) async {
  dynamic snapshotUri = _mediaSupportLevel == MediaSupportLevel.one
      ? await media1.getSnapshotUri(profileToken)
      : await media2.getSnapshotUri(profileToken);

  return (snapshotUri is String)
      ? snapshotUri
      : (snapshotUri as m1.MediaUri).uri;
}