updateConstraints method

Future<void> updateConstraints(
  1. double width,
  2. double height
)

Update frame constraints for native platform view.

Must call when Flutter widget AndroidView or UIkitView changes size.

Implementation

Future<void> updateConstraints(double width, double height) {
  final arg = {
    'width': width,
    'height': height,
  };
  return _channel.invokeMethod(_updateConstraintsMethod, arg);
}