applyConstraints method Null safety

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));
}