HomeTab constructor

HomeTab(
  1. HomeTabId id,
  2. String title,
  3. IconData icon,
  4. MaterialColor color,
  5. Key btnKey,
  6. Key titleKey,
  7. {QueryChangeHandler onQueryChange,
  8. RefreshHandler onRefresh}
)

Implementation

HomeTab(
  this.id,
  this.title,
  this.icon,
  this.color,
  this.btnKey,
  this.titleKey, {
  QueryChangeHandler onQueryChange,
  RefreshHandler onRefresh,
}) {
  if (onQueryChange != null) {
    this.onQueryChange = onQueryChange;
  }
  if (onRefresh != null) {
    this.onRefresh = onRefresh;
  }
}