TextFieldWrapper.fromKey constructor

TextFieldWrapper.fromKey({
  1. required FocusNode focusNode,
  2. required GlobalKey<State<StatefulWidget>> focusKey,
  3. double more = 0,
})

Implementation

TextFieldWrapper.fromKey({
  required this.focusNode,
  required this.focusKey,
  this.more = 0,
}) {
  _focusDelegateListener = () {
    if (_focusChangedListener != null) {
      _focusChangedListener!(focusNode);
    }
  };
  focusNode.addListener(_focusDelegateListener!);
}