FocusScope constructor

const FocusScope({Key key, @required FocusScopeNode node, bool autofocus: false, Widget child })

Creates a scope in which widgets can receive focus.

The node argument must not be null.

Implementation

const FocusScope({
  Key key,
  @required this.node,
  this.autofocus = false,
  this.child,
}) : assert(node != null),
     assert(autofocus != null),
     super(key: key);