remove<T> method

T? remove<T>(
  1. String key
)

Remove param with key.

Return value if param not exists.

Implementation

T? remove<T>(String key) {
  if (module is ModuleParamScheme) {
    final value = (module as ModuleParamScheme).removeParam<T>(key);
    if (value != null) {
      return value;
    }
  }
  // Anchor module caches the data of the framework
  return module.parent == anchor || module.parent == null ? null : module.parent?._moduleContext.remove<T>(key);
}