isHookCall function
Returns true if name looks like a flutter_hooks hook call.
Hook calls follow the pattern useFoo (starts with use followed by
an uppercase letter). This excludes non-hook methods like user() or
useCase.
Implementation
bool isHookCall(String name) {
if (!name.startsWith('use')) return false;
if (name.length <= 3) return false;
final c = name.codeUnitAt(3);
return c >= 0x41 && c <= 0x5A; // A-Z
}