showWhenFocused method

Widget showWhenFocused(
  1. Widget child, {
  2. Widget? unfocused,
  3. Key? key,
})

Implementation

Widget showWhenFocused(Widget child, {Widget? unfocused, Key? key}) =>
    this == null
        ? child
        : Focused(
            key: key,
            unfocused: unfocused,
            focusNode: this!,
            child: child,
          );