registerViewFactory method

dynamic registerViewFactory(
  1. Object x,
  2. dynamic y
)

Implementation

registerViewFactory(Object x, dynamic y) {
  if (kIsWeb) {
    // ignore: undefined_prefixed_name
    ui_instance.platformViewRegistry.registerViewFactory(
      x.toString(),
      y,
    );
  } else {}
}