restart method

dynamic restart(
  1. Map data
)

Implementation

restart(Map data) {
  dispose();
  init(data);
}