applyConstraints method

Future applyConstraints (
  1. [Map? constraints]
)

Implementation

Future applyConstraints([Map? constraints]) {
  var constraints_dict = null;
  if (constraints != null) {
    constraints_dict = convertDartToNative_Dictionary(constraints);
  }
  return promiseToFuture(
      JS("", "#.applyConstraints(#)", this, constraints_dict));
}

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.13.0/dart-html/MediaStreamTrack/applyConstraints.html