attachToParent method

  1. @override
void attachToParent(
  1. Binding parent
)
override

Implementation

@override
void attachToParent(Binding parent) {
  super.attachToParent(parent);
  if (findAncestorBindingOfType<GatewayBinding>() == null) {
    throw UnsupportedError("""
    Incorrect use of parent component
    [Route] working with Gateway.
    But using with: $parent , ${parent.component}
    if you want to only one route use [RouteTo] component
    WHERE: $_errorWhere
    """);
  }
}