Class _DragAvatar<T>
Inheritance
System.Object
_DragAvatar<T>
Namespace: Unity.UIWidgets.widgets
Syntax
public class _DragAvatar<T> : Drag
Type Parameters
Name | Description |
---|---|
T |
Constructors
_DragAvatar(T, OverlayState, Nullable<Axis>, Offset, Offset, Widget, Offset, _OnDragEnd)
Declaration
public _DragAvatar(T data, OverlayState overlayState, Axis? axis = default(Axis? ), Offset initialPosition = null, Offset dragStartPoint = null, Widget feedback = null, Offset feedbackOffset = null, _OnDragEnd onDragEnd = null)
Parameters
Type | Name | Description |
---|---|---|
T | data | |
OverlayState | overlayState | |
System.Nullable<Axis> | axis | |
Offset | initialPosition | |
Offset | dragStartPoint | |
Widget | feedback | |
Offset | feedbackOffset | |
_OnDragEnd | onDragEnd |
Fields
data
Declaration
public readonly T data
Field Value
Type | Description |
---|---|
T |
Methods
_build(BuildContext)
Declaration
public Widget _build(BuildContext context)
Parameters
Type | Name | Description |
---|---|---|
BuildContext | context |
Returns
Type | Description |
---|---|
Widget |
cancel()
Declaration
public void cancel()
Implements
end(DragEndDetails)
Declaration
public void end(DragEndDetails details)
Parameters
Type | Name | Description |
---|---|---|
DragEndDetails | details |
Implements
update(DragUpdateDetails)
Declaration
public void update(DragUpdateDetails details)
Parameters
Type | Name | Description |
---|---|---|
DragUpdateDetails | details |