build method Null safety

  1. @override
Element build()
override

Method which needs to be defined by the developer to describe the UI using HTML Elements. It is not recommended to use this method to append your widget in the build method of another widget! Use appendTo for this!

Implementation

@override
Element build() {
  window.location.hash = currentRoute;
  return routeBuilder(currentRoute).appendTo(this);
}