properties method
ViewController
properties({
- required bool? activated,
- required bool? enabled,
- required bool? visibility,
- required int? animation,
- required Curve? animationType,
- required int? flex,
- required double? dimensionRatio,
- required double? width,
- required double? widthMax,
- required double? widthMin,
- required double? height,
- required double? heightMax,
- required double? heightMin,
- required double? margin,
- required double? marginHorizontal,
- required double? marginVertical,
- required double? marginTop,
- required double? marginBottom,
- required double? marginStart,
- required double? marginEnd,
- required double? padding,
- required double? paddingHorizontal,
- required double? paddingVertical,
- required double? paddingTop,
- required double? paddingBottom,
- required double? paddingStart,
- required double? paddingEnd,
- required double? border,
- required double? borderHorizontal,
- required double? borderVertical,
- required double? borderTop,
- required double? borderBottom,
- required double? borderStart,
- required double? borderEnd,
- required double? borderRadius,
- required double? borderRadiusBL,
- required double? borderRadiusBR,
- required double? borderRadiusTL,
- required double? borderRadiusTR,
- required double? shadow,
- required double? shadowBlurRadius,
- required double? shadowSpreadRadius,
- required double? shadowHorizontal,
- required double? shadowVertical,
- required double? shadowStart,
- required double? shadowEnd,
- required double? shadowTop,
- required double? shadowBottom,
- required Color? background,
- required Color? foreground,
- required Color? borderColor,
- required Color? shadowColor,
- required Alignment? gravity,
- required Alignment? transformGravity,
- required BlendMode? backgroundBlendMode,
- required BlendMode? foregroundBlendMode,
- required DecorationImage? backgroundImage,
- required DecorationImage? foregroundImage,
- required Gradient? backgroundGradient,
- required Gradient? foregroundGradient,
- required Gradient? borderGradient,
- required Matrix4? transform,
- required BlurStyle? shadowBlurStyle,
- required Clip? clipBehavior,
- required ViewShadowType? shadowType,
- required ViewPosition? position,
- required ViewPositionType? positionType,
- required ViewProperties? root,
- required ViewShape? shape,
- required Widget? child,
- required OnViewClickListener? onClick,
- required OnViewClickListener? onDoubleClick,
- required OnViewClickListener? onLongClick,
- required OnViewNotifyListener<
ViewController> ? onClickHandle, - required OnViewNotifyListener<
ViewController> ? onDoubleClickHandle, - required OnViewNotifyListener<
ViewController> ? onLongClickHandle,
Implementation
ViewController properties({
required bool? activated,
required bool? enabled,
required bool? visibility,
required int? animation,
required Curve? animationType,
required int? flex,
required double? dimensionRatio,
required double? width,
required double? widthMax,
required double? widthMin,
required double? height,
required double? heightMax,
required double? heightMin,
required double? margin,
required double? marginHorizontal,
required double? marginVertical,
required double? marginTop,
required double? marginBottom,
required double? marginStart,
required double? marginEnd,
required double? padding,
required double? paddingHorizontal,
required double? paddingVertical,
required double? paddingTop,
required double? paddingBottom,
required double? paddingStart,
required double? paddingEnd,
required double? border,
required double? borderHorizontal,
required double? borderVertical,
required double? borderTop,
required double? borderBottom,
required double? borderStart,
required double? borderEnd,
required double? borderRadius,
required double? borderRadiusBL,
required double? borderRadiusBR,
required double? borderRadiusTL,
required double? borderRadiusTR,
required double? shadow,
required double? shadowBlurRadius,
required double? shadowSpreadRadius,
required double? shadowHorizontal,
required double? shadowVertical,
required double? shadowStart,
required double? shadowEnd,
required double? shadowTop,
required double? shadowBottom,
required Color? background,
required Color? foreground,
required Color? borderColor,
required Color? shadowColor,
required Alignment? gravity,
required Alignment? transformGravity,
required BlendMode? backgroundBlendMode,
required BlendMode? foregroundBlendMode,
required DecorationImage? backgroundImage,
required DecorationImage? foregroundImage,
required Gradient? backgroundGradient,
required Gradient? foregroundGradient,
required Gradient? borderGradient,
required Matrix4? transform,
required BlurStyle? shadowBlurStyle,
required Clip? clipBehavior,
required ViewShadowType? shadowType,
required ViewPosition? position,
required ViewPositionType? positionType,
required ViewProperties? root,
required ViewShape? shape,
required Widget? child,
required OnViewClickListener? onClick,
required OnViewClickListener? onDoubleClick,
required OnViewClickListener? onLongClick,
required OnViewNotifyListener? onClickHandle,
required OnViewNotifyListener? onDoubleClickHandle,
required OnViewNotifyListener? onLongClickHandle,
}) {
// VIEW CONDITIONAL PROPERTIES
this.activated = activated ?? this.activated;
this.enabled = enabled ?? this.enabled;
this.visibility = visibility ?? this.visibility;
// ANIMATION PROPERTIES
this.animation = animation ?? this.animation;
this.animationType = animationType ?? this.animationType;
// VIEW SIZE PROPERTIES
this.flex = flex ?? this.flex;
_dimensionRatio = dimensionRatio ?? _dimensionRatio;
_width = width ?? _width;
_widthMax = widthMax ?? _widthMax;
_widthMin = widthMin ?? _widthMin;
_height = height ?? _height;
_heightMax = heightMax ?? _heightMax;
_heightMin = heightMin ?? _heightMin;
// VIEW MARGIN PROPERTIES
this.margin = margin ?? this.margin;
this.marginVertical = marginVertical ?? this.marginVertical;
_marginStart = marginStart ?? _marginStart;
_marginEnd = marginEnd ?? _marginEnd;
_marginTop = marginTop ?? _marginTop;
_marginBottom = marginBottom ?? _marginBottom;
this.marginHorizontal = marginHorizontal ?? this.marginHorizontal;
// VIEW PADDING PROPERTIES
this.padding = padding ?? this.padding;
_paddingStart = paddingStart ?? _paddingStart;
_paddingEnd = paddingEnd ?? _paddingEnd;
_paddingTop = paddingTop ?? _paddingTop;
_paddingBottom = paddingBottom ?? _paddingBottom;
this.paddingHorizontal = paddingHorizontal ?? this.paddingHorizontal;
this.paddingVertical = paddingVertical ?? this.paddingVertical;
// VIEW BORDER PROPERTIES
this.borderColor = borderColor ?? this.borderColor;
this.borderGradient = borderGradient ?? this.borderGradient;
this.border = border ?? this.border;
_borderStart = borderStart ?? _borderStart;
_borderEnd = borderEnd ?? _borderEnd;
_borderTop = borderTop ?? _borderTop;
_borderBottom = borderBottom ?? _borderBottom;
this.borderHorizontal = borderHorizontal ?? this.borderHorizontal;
this.borderVertical = borderVertical ?? this.borderVertical;
// VIEW BORDER RADIUS PROPERTIES
this.borderRadius = borderRadius ?? this.borderRadius;
_borderRadiusBL = borderRadiusBL ?? _borderRadiusBL;
_borderRadiusBR = borderRadiusBR ?? _borderRadiusBR;
_borderRadiusTL = borderRadiusTL ?? _borderRadiusTL;
_borderRadiusTL = borderRadiusTL ?? _borderRadiusTL;
// VIEW SHADOW PROPERTIES
this.shadowColor = shadowColor ?? this.shadowColor;
this.shadow = shadow ?? this.shadow;
_shadowStart = shadowStart ?? _shadowStart;
_shadowEnd = shadowEnd ?? _shadowEnd;
__shadowTop = shadowTop ?? __shadowTop;
_shadowBottom = shadowBottom ?? _shadowBottom;
this.shadowHorizontal = shadowHorizontal ?? this.shadowHorizontal;
this.shadowVertical = shadowVertical ?? this.shadowVertical;
this.shadowBlurRadius = shadowBlurRadius ?? this.shadowBlurRadius;
this.shadowBlurStyle = shadowBlurStyle ?? this.shadowBlurStyle;
this.shadowSpreadRadius = shadowSpreadRadius ?? this.shadowSpreadRadius;
this.shadowType = shadowType ?? this.shadowType;
// VIEW DECORATION PROPERTIES
this.background = background ?? this.background;
this.foreground = foreground ?? this.foreground;
this.backgroundBlendMode = backgroundBlendMode ?? this.backgroundBlendMode;
this.foregroundBlendMode = foregroundBlendMode ?? this.foregroundBlendMode;
this.backgroundGradient = backgroundGradient ?? this.backgroundGradient;
this.foregroundGradient = foregroundGradient ?? this.foregroundGradient;
this.backgroundImage = backgroundImage ?? this.backgroundImage;
this.foregroundImage = foregroundImage ?? this.foregroundImage;
this.clipBehavior = clipBehavior ?? this.clipBehavior;
this.gravity = gravity ?? this.gravity;
this.transform = transform ?? this.transform;
this.transformGravity = transformGravity ?? this.transformGravity;
this.transform = transform ?? this.transform;
_position = position ?? _position;
this.positionType = positionType ?? this.positionType;
this.shape = shape ?? this.shape;
this.root = root ?? this.root;
this.child = child ?? this.child;
// VIEW LISTENER PROPERTIES
this.onClick = onClick ?? this.onClick;
this.onDoubleClick = onDoubleClick ?? this.onDoubleClick;
this.onLongClick = onLongClick ?? this.onLongClick;
this.onClickHandle = onClickHandle ?? this.onClickHandle;
this.onDoubleClickHandle = onDoubleClickHandle ?? this.onDoubleClickHandle;
this.onLongClickHandle = onLongClickHandle ?? this.onLongClickHandle;
return this;
}