Tab constructor

const Tab({
  1. String? text,
  2. String? icon,
})

Creates a Tab with optional text and icon.

Implementation

const Tab({this.text, this.icon});