fromView method
TabViewController
fromView(
- YMRView<
ViewController> view, { - Color? contentColor,
- ValueState<
Color> ? contentColorState, - dynamic icon,
- ValueState? iconState,
- Color? iconTint,
- ValueState<
Color> ? iconTintState, - double? size,
- ValueState<
double> ? iconSizeState, - double? iconSpace,
- bool? inline,
- String? title,
- ValueState<
String> ? titleState, - double? titleSize,
- ValueState<
double> ? titleSizeState, - FontWeight? titleWeight,
- ValueState<
FontWeight> ? titleWeightState, - bool onVisibleIconWhenTabSelected(
- bool selected
- bool onVisibleTitleWhenTabSelected(
- bool selected
override
Implementation
@override
TabViewController fromView(
YMRView<ViewController> view, {
Color? contentColor,
ValueState<Color>? contentColorState,
dynamic icon,
ValueState? iconState,
Color? iconTint,
ValueState<Color>? iconTintState,
double? size,
ValueState<double>? iconSizeState,
double? iconSpace,
bool? inline,
String? title,
ValueState<String>? titleState,
double? titleSize,
ValueState<double>? titleSizeState,
FontWeight? titleWeight,
ValueState<FontWeight>? titleWeightState,
bool Function(bool selected)? onVisibleIconWhenTabSelected,
bool Function(bool selected)? onVisibleTitleWhenTabSelected,
}) {
super.fromView(view);
_contentColor = contentColor ?? const Color(0xFF808080);
this.contentColorState = contentColorState;
_icon = icon;
this.iconState = iconState;
_iconTint = iconTint;
this.iconTintState = iconTintState;
_iconSize = size ?? 24;
this.iconSizeState = iconSizeState;
this.iconSpace = iconSpace ?? 6;
this.inline = inline ?? false;
_title = title;
this.titleState = titleState;
_titleSize = titleSize ?? 12;
this.titleSizeState = titleSizeState;
_titleWeight = titleWeight;
this.titleWeightState = titleWeightState;
this.onVisibleIconWhenTabSelected = onVisibleIconWhenTabSelected;
this.onVisibleTitleWhenTabSelected = onVisibleTitleWhenTabSelected;
return this;
}