Title constructor

Title(
  1. {Key key,
  2. String title: '',
  3. @required Color color,
  4. @required Widget child}
)

Creates a widget that describes this app to the Android operating system.

title will default to the empty string if not supplied. color must be an opaque color (i.e. color.alpha must be 255 (0xFF)). color and child are required arguments.

Implementation

Title({
  Key key,
  this.title = '',
  @required this.color,
  @required this.child,
}) : assert(title != null),
     assert(color != null && color.alpha == 0xFF),
     super(key: key);