useNativeCodec function

String useNativeCodec(
  1. String url
)

Implementation

String useNativeCodec(String url) {
  if (kIsMPFlutter && !kIsMPFlutterDevmode) {
    if (url.contains("?use-native-codec=true")) return url;
    return url + "?use-native-codec=true";
  } else {
    return url;
  }
}