inputKey property
Optional GlobalKey for the input field.
If provided, allows external access to the input field for:
- Programmatic focus control
- Integration with form libraries
- Testing and widget finding
- Layout measurement and positioning
If not provided, an internal key is used automatically.
Example usage:
final key = GlobalKey();
SingleItemDropper(
inputKey: key,
// ... other parameters
);
// Later, access the input field:
final context = key.currentContext;
Implementation
final GlobalKey? inputKey;