remove<T extends SyncEaseLogic> static method

void remove<T extends SyncEaseLogic>()

Remove a registered instance of SyncEaseLogic of the specified type T.

Throws an exception if the instance is not registered.

Implementation

static void remove<T extends SyncEaseLogic>() {
  String typeKey = T.toString();
  if (Utils.registeredLogics[typeKey] == null) {
    EaseLogger.error(
      tag: "$typeKey:",
      message: "Type $typeKey is not registered. Unable to remove instance.",
    );
    throw Exception("Type $typeKey is not registered.");
  }

  Utils.registeredLogics.remove(typeKey);
}