selfFactory method

  1. @override
ErrorBoundaryPropsMapView selfFactory(
  1. Map map
)
override

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

@override
ErrorBoundaryPropsMapView selfFactory(Map map) => ErrorBoundaryPropsMapView(map);