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