register method

  1. @mustCallSuper
void register(
  1. Registration registration
)

This method used during registration to define set of Type with which this FlateElementMixin will be registered

By default this method provide type from runtimeType getter. This method can be overridden if an instance needs to be registered with multiple types that it implements. If you try to specify a type that this instance does not implement, an exception will be thrown


  @override
  void register(Registration registration) {
    super.register(registration);
    registration.registerAs<SomeModel>();
  }

Implementation

@mustCallSuper
void register(Registration registration) {}