dispose method

void dispose()

Implementation

void dispose() {
  headerMode!.dispose();
  footerMode!.dispose();
  headerMode = null;
  footerMode = null;
}