removeIfExist<S> static method

void removeIfExist<S>({
  1. String? tag,
})

Remove when it exist in GetX container

Implementation

static void removeIfExist<S>({String? tag}) {
  if (existInGetX<S>(tag: tag)) {
    remove<S>(tag: tag);
  }
}