extractLifecycleHooks function

List<LifecycleHooks> extractLifecycleHooks(
  1. ClassElement element
)

Implementation

List<LifecycleHooks> extractLifecycleHooks(ClassElement element) {
  return _typeCheckerToLifecycleHook.keys
      .where((typeChecker) => typeChecker.isAssignableFrom(element))
      .map((typeChecker) => _typeCheckerToLifecycleHook[typeChecker]!)
      .toList();
}