dispose method

void dispose()

Disposes of any SuperText widgets that have been unmounted.

Implementation

void dispose() {
  superTexts.removeWhere((element) {
    final globalKey = element.key as GlobalKey;
    final state = globalKey.currentState;
    return state == null;
  });
}