CupertinoToolbarItem constructor

const CupertinoToolbarItem(
  1. {@required IconData icon,
  2. @required VoidCallback onPressed,
  3. String semanticLabel}
)

Creates an item that is used with CupertinoToolbar.items.

The argument icon should not be null and the argument onPressed should not be null.

Implementation

const CupertinoToolbarItem({
  @required this.icon,
  @required this.onPressed,
  this.semanticLabel
}) : assert(icon != null),
     assert(onPressed != null);