register method
Implementation
void register(FlateElementMixin element) {
final registration = Registration(instance: element);
element.register(registration);
for (final type in registration.types) {
assert(
!_elements.containsKey(type),
'Instance for type $type already registered',
);
_elements[type] = element;
}
}