resize method
Implementation
void resize(int width, int height) {
if (!isDisposed) {
canvasElement.width = width;
canvasElement.height = height;
if (dotLottiePlayer != null) {
try {
final player = dotLottiePlayer as JSObject;
final method = player['resize'.toJS] as JSFunction?;
if (method != null) {
method.callAsFunction(player);
}
} catch (e) {}
}
}
}