attach method
IconViewController
attach(
- YMRView<
ViewController> view, { - BoxFit? fit,
- dynamic icon,
- ValueState? iconState,
- double? size,
- ValueState<
double> ? iconSizeState, - Color? iconTint,
- ValueState<
Color> ? iconTintState, - BlendMode? tintMode,
- Color? splashColor,
- Color? pressedColor,
override
Implementation
@override
IconViewController attach(
YMRView<ViewController> view, {
BoxFit? fit,
dynamic icon,
ValueState<dynamic>? iconState,
double? size,
ValueState<double>? iconSizeState,
Color? iconTint,
ValueState<Color>? iconTintState,
BlendMode? tintMode,
Color? splashColor,
Color? pressedColor,
}) {
super.attach(view);
this.fit = fit ?? this.fit;
_icon = icon ?? _icon;
this.iconState = iconState ?? this.iconState;
_iconSize = size ?? _iconSize;
_iconTint = iconTint ?? _iconTint;
tintState = iconTintState ?? tintState;
this.tintMode = tintMode ?? this.tintMode;
this.splashColor = splashColor ?? this.splashColor;
this.pressedColor = pressedColor ?? this.pressedColor;
return this;
}