dispose method
void
dispose()
for some special situation, you should call dispose() for safe,it may throw errors after parent widget dispose
Implementation
void dispose() {
headerMode!.dispose();
footerMode!.dispose();
headerMode = null;
footerMode = null;
}