findByType<N extends NodeInterface> method
N
findByType<
N extends NodeInterface>({ - Key? key,
})
Implementation
N findByType<N extends NodeInterface>({Key? key}) {
final node = registry.getOrNull<N>(key: key);
if (node != null) return node;
// Sube al scope padre si existe
// Como el scope es global Ășnico por ahora, esto simplemente falla
throw FlutterError(
'Node of type $N ${key != null ? 'with key $key ' : ''}not found in the TrinityScope.\n'
'Make sure to register it with a NodeProvider.',
);
}