prepare method Null safety

Future prepare()

You override this method to perform initialization tasks.

This method allows this instance to perform any initialization (other than setting up the entryPoint). This method is often used to set up services that Controllers use to fulfill their duties. This method is invoked prior to entryPoint, so that the services it creates can be injected into Controllers.

By default, this method does nothing.

Implementation

Future prepare() async {}