add method

  1. @override
FutureOr<void> add(
  1. Component component
)
override

Used to add components in your interface like a Button.

Implementation

@override
FutureOr<void> add(Component component) {
  if (component is InterfaceComponent) {
    removeById(component.id);
  }
  return super.add(component);
}