Focus({@required GlobalKey key, GlobalKey initiallyFocusedScope, Widget child })

Creates a scope for managing focus.

The key argument must not be null.

Source

Focus({
  @required GlobalKey key,
  this.initiallyFocusedScope,
  this.child
}) : super(key: key) {
  assert(key != null);
}