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