YMRView<T extends ViewController> class

Inheritance
Implementers

Constructors

YMRView({Key? key, ViewClickEffect? clickEffect, OnViewClickListener? onClick, OnViewClickListener? onDoubleClick, OnViewClickListener? onLongClick, OnViewNotifyListener<T>? onClickHandler, OnViewNotifyListener<T>? onDoubleClickHandler, OnViewNotifyListener<T>? onLongClickHandler, OnViewHoverListener? onHover, OnViewToggleListener? onToggleClick, OnViewActivator? onActivator, OnViewChangeListener? onChange, OnViewErrorListener? onError, OnViewValidListener? onValid, OnViewValidatorListener? onValidator, T? controller, bool? absorbMode, bool? activated, Color? background, ValueState<Color>? backgroundState, BlendMode? backgroundBlendMode, Gradient? backgroundGradient, ValueState<Gradient>? backgroundGradientState, DecorationImage? backgroundImage, ValueState<DecorationImage>? backgroundImageState, Clip? clipBehavior, double? dimensionRatio, double? elevation, bool? enabled, bool? expandable, Color? foreground, BlendMode? foregroundBlendMode, Gradient? foregroundGradient, DecorationImage? foregroundImage, int? flex, Alignment? gravity, double? height, ValueState<double>? heightState, double? heightMax, double? heightMin, Color hoverColor = Colors.transparent, Axis? orientation, ViewPosition? position, ViewPositionType? positionType, Color pressedColor = Colors.transparent, Color rippleColor = Colors.transparent, bool? scrollable, ScrollController? scrollController, ViewScrollingType? scrollingType, ViewShape? shape, Matrix4? transform, Alignment? transformGravity, bool? visibility, double? width, ValueState<double>? widthState, double? widthMax, double? widthMin, int? animation, Curve? animationType, ImageFilter? backdropFilter, BlendMode? backdropMode, Color? borderColor, ValueState<Color>? borderColorState, double? borderSize, ValueState<double>? borderSizeState, double? borderHorizontal, ValueState<double>? borderHorizontalState, double? borderVertical, ValueState<double>? borderVerticalState, double? borderTop, ValueState<double>? borderTopState, double? borderBottom, ValueState<double>? borderBottomState, double? borderStart, ValueState<double>? borderStartState, double? borderEnd, ValueState<double>? borderEndState, double? borderStrokeAlign, double? borderRadius, ValueState<double>? borderRadiusState, double? borderRadiusBL, ValueState<double>? borderRadiusBLState, double? borderRadiusBR, ValueState<double>? borderRadiusBRState, double? borderRadiusTL, ValueState<double>? borderRadiusTLState, double? borderRadiusTR, ValueState<double>? borderRadiusTRState, bool indicatorVisible = false, double? margin, double? marginHorizontal, double? marginVertical, double? marginTop, double? marginBottom, double? marginStart, double? marginEnd, EdgeInsets? marginCustom, double? opacity, ValueState<double>? opacityState, bool opacityAlwaysIncludeSemantics = false, double? padding, double? paddingHorizontal, double? paddingVertical, double? paddingTop, double? paddingBottom, double? paddingStart, double? paddingEnd, EdgeInsets? paddingCustom, double? shadow, double? shadowBlurRadius, BlurStyle? shadowBlurStyle, Color? shadowColor, ViewShadowType? shadowType, double? shadowSpreadRadius, double? shadowHorizontal, double? shadowVertical, double? shadowStart, double? shadowEnd, double? shadowTop, double? shadowBottom, bool? wrapper, Widget? child})
const

Properties

absorbMode bool?
final
activated bool?
final
animation int?
final
animationType Curve?
final
backdropFilter ImageFilter?
BACKDROP PROPERTIES
final
backdropMode BlendMode?
final
background Color?
final
backgroundBlendMode BlendMode?
final
backgroundGradient Gradient?
final
backgroundGradientState ValueState<Gradient>?
final
backgroundImage DecorationImage?
final
backgroundImageState ValueState<DecorationImage>?
final
backgroundState ValueState<Color>?
final
borderBottom double?
final
borderBottomState ValueState<double>?
final
borderColor Color?
BORDER PROPERTIES
final
borderColorState ValueState<Color>?
final
borderEnd double?
final
borderEndState ValueState<double>?
final
borderHorizontal double?
final
borderHorizontalState ValueState<double>?
final
borderRadius double?
BORDER RADIUS PROPERTIES
final
borderRadiusBL double?
final
borderRadiusBLState ValueState<double>?
final
borderRadiusBR double?
final
borderRadiusBRState ValueState<double>?
final
borderRadiusState ValueState<double>?
final
borderRadiusTL double?
final
borderRadiusTLState ValueState<double>?
final
borderRadiusTR double?
final
borderRadiusTRState ValueState<double>?
final
borderSize double?
final
borderSizeState ValueState<double>?
final
borderStart double?
final
borderStartState ValueState<double>?
final
borderStrokeAlign double?
final
borderTop double?
final
borderTopState ValueState<double>?
final
borderVertical double?
final
borderVerticalState ValueState<double>?
final
child Widget?
final
clickEffect ViewClickEffect?
CLICK PROPERTIES
final
clipBehavior Clip?
final
controller → T?
ROOT PROPERTIES
final
dimensionRatio double?
final
elevation double?
final
enabled bool?
final
expandable bool?
final
flex int?
final
foreground Color?
final
foregroundBlendMode BlendMode?
final
foregroundGradient Gradient?
final
foregroundImage DecorationImage?
final
gravity Alignment?
final
hashCode int
The hash code for this object.
no setterinherited
height double?
final
heightMax double?
final
heightMin double?
final
heightState ValueState<double>?
final
hoverColor Color
final
indicatorVisible bool
INDICATOR PROPERTIES
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
margin double?
MARGIN PROPERTIES
final
marginBottom double?
final
marginCustom EdgeInsets?
final
marginEnd double?
final
marginHorizontal double?
final
marginStart double?
final
marginTop double?
final
marginVertical double?
final
onActivator OnViewActivator?
CALLBACK PROPERTIES
final
onChange OnViewChangeListener?
final
onClick OnViewClickListener?
final
onClickHandler OnViewNotifyListener<T>?
final
onDoubleClick OnViewClickListener?
final
onDoubleClickHandler OnViewNotifyListener<T>?
final
onError OnViewErrorListener?
final
onHover OnViewHoverListener?
final
onLongClick OnViewClickListener?
final
onLongClickHandler OnViewNotifyListener<T>?
final
onToggleClick OnViewToggleListener?
final
onValid OnViewValidListener?
final
onValidator OnViewValidatorListener?
final
opacity double?
OPACITY PROPERTIES
final
opacityAlwaysIncludeSemantics bool
final
opacityState ValueState<double>?
final
orientation Axis?
final
padding double?
PADDING PROPERTIES
final
paddingBottom double?
final
paddingCustom EdgeInsets?
final
paddingEnd double?
final
paddingHorizontal double?
final
paddingStart double?
final
paddingTop double?
final
paddingVertical double?
final
position ViewPosition?
final
positionType ViewPositionType?
final
pressedColor Color
final
rippleColor Color
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scrollable bool?
final
scrollController ScrollController?
final
scrollingType ViewScrollingType?
final
shadow double?
SHADOW PROPERTIES
final
shadowBlurRadius double?
final
shadowBlurStyle BlurStyle?
final
shadowBottom double?
final
shadowColor Color?
final
shadowEnd double?
final
shadowHorizontal double?
final
shadowSpreadRadius double?
final
shadowStart double?
final
shadowTop double?
final
shadowType ViewShadowType?
final
shadowVertical double?
final
shape ViewShape?
final
transform Matrix4?
final
transformGravity Alignment?
final
visibility bool?
final
width double?
final
widthMax double?
final
widthMin double?
final
widthState ValueState<double>?
final
wrapper bool?
final

Methods

attach(BuildContext context, T controller) Widget?
attachController(T controller) → T
build(BuildContext context, T controller, Widget parent) Widget
createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<YMRView<T>>
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
initController() → T
initRootProperties() ViewRoots
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onChangeDependencies(BuildContext context, T controller) → void
onDispose(BuildContext context, T controller) → void
onInit(BuildContext context, T controller) → void
onReady(BuildContext context, T controller) → void
onToggleHandler(BuildContext context, T controller) → void
onUpdateWidget(BuildContext context, T controller, dynamic oldWidget) → void
onViewCreated(BuildContext context, T controller) → void
root(BuildContext context, T controller, Widget parent) Widget
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited