delete<S> method

Future<bool> delete<S>(
  1. {String tag,
  2. bool force = false}
)

Deletes the Instance<S>, cleaning the memory and closes any open controllers (DisposableInterface).

  • tag Optional "tag" used to register the Instance
  • force Will delete an Instance even if marked as permanent.

Implementation

Future<bool> delete<S>({String tag, bool force = false}) async =>
    GetInstance().delete<S>(tag: tag, force: force);