Whether this node has input focus.
The hasFocus accessor is different from hasPrimaryFocus in that hasFocus is true if the node is anywhere in the focus chain, but for hasPrimaryFocus the node must to be at the end of the chain to return true.
bool get hasFocus => hasPrimaryFocus || (_manager?.primaryFocus?.ancestors?.contains(this) ?? false);