discontinuedPackage androssy_widgets has been discontinued.

attach method

  1. @override
TabViewController attach(
  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 attach(
  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.attach(view);
  _contentColor = contentColor ?? _contentColor;
  this.contentColorState = contentColorState ?? this.contentColorState;
  _icon = icon ?? _icon;
  this.iconState = iconState ?? this.iconState;
  _iconTint = iconTint ?? _iconTint;
  this.iconTintState = iconTintState ?? this.iconTintState;
  _iconSize = size ?? _iconSize;
  this.iconSizeState = iconSizeState ?? this.iconSizeState;
  this.iconSpace = iconSpace ?? this.iconSpace;
  this.inline = inline ?? this.inline;
  _title = title ?? _title;
  this.titleState = titleState ?? this.titleState;
  _titleSize = titleSize ?? _titleSize;
  this.titleSizeState = titleSizeState ?? this.titleSizeState;
  _titleWeight = titleWeight ?? _titleWeight;
  this.titleWeightState = titleWeightState ?? this.titleWeightState;
  this.onVisibleIconWhenTabSelected =
      onVisibleIconWhenTabSelected ?? this.onVisibleIconWhenTabSelected;
  this.onVisibleTitleWhenTabSelected =
      onVisibleTitleWhenTabSelected ?? this.onVisibleTitleWhenTabSelected;
  return this;
}