CNTab class

Configuration for a native tab in CNTabBarNative.

Each tab can have a title, SF Symbol icon, an optional badge, an optional CNNativeList (which makes it drive minimize-on-scroll), and can be marked as the search tab.

Constructors

CNTab({required String title, CNSymbol? sfSymbol, CNSymbol? activeSfSymbol, bool isSearchTab = false, int? badgeCount, CNNativeList? nativeList})
Creates a tab configuration for CNTabBarNative.
const

Properties

activeSfSymbol CNSymbol?
SF Symbol for the tab icon (selected state); falls back to sfSymbol.
final
badgeCount int?
Badge count to display on the tab.
final
hashCode int
The hash code for this object.
no setterinherited
isSearchTab bool
Whether this tab is the search tab.
final
nativeList CNNativeList?
Optional native list content for this tab.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sfSymbol CNSymbol?
SF Symbol for the tab icon (unselected state).
final
title String
The title of the tab (shown below the icon).
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited