fromView method

  1. @override
TabViewController fromView(
  1. YMRView<ViewController> view, {
  2. Color? contentColor,
  3. ValueState<Color>? contentColorState,
  4. dynamic icon,
  5. ValueState? iconState,
  6. Color? iconTint,
  7. ValueState<Color>? iconTintState,
  8. double? size,
  9. ValueState<double>? iconSizeState,
  10. double? iconSpace,
  11. bool? inline,
  12. String? title,
  13. ValueState<String>? titleState,
  14. double? titleSize,
  15. ValueState<double>? titleSizeState,
  16. FontWeight? titleWeight,
  17. ValueState<FontWeight>? titleWeightState,
  18. bool onVisibleIconWhenTabSelected(
    1. bool selected
    )?,
  19. bool onVisibleTitleWhenTabSelected(
    1. 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;
}