build method
Describes the part of the user interface represented by this widget.
Implementation
@override
Widget build(BuildContext context) {
return Focus(
focusNode: focusNode,
onFocusChange: (hasFocus) {
if (mounted) setState(() {});
},
onKeyEvent: (event) {
return handleKeyEvent(event);
},
child: _ButtonRenderWidget(
text: widget.text,
focused: focusNode.hasFocus || widget.focused,
style: widget.style,
focusedStyle: widget.focusedStyle,
),
);
}