selfFactory abstract method

  1. @visibleForOverriding
UiProps selfFactory(
  1. Map props
)

Returns a new instance of the current class backed by the given props.

This exists to implement $getPropKey, and must be overridden by consumers.

Example override:

class OverlayPropsMixinMapView extends UiPropsMapView
    with
        OverlayPropsMixin,
        // ignore: mixin_of_non_class, undefined_class
        $OverlayPropsMixin {
  OverlayPropsMixinMapView(Map map) : super(map);

  @override
  OverlayPropsMixinMapView selfFactory(Map map) => OverlayPropsMixinMapView(this);
}

Implementation

@visibleForOverriding
UiProps selfFactory(Map props);