NativeDropView class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- NativeDropView
Constructors
-
NativeDropView({Key? key, required Widget child, int allowedTotal = 0, List<
DropDataType> ? allowedDropDataTypes, List<String> ? allowedDropFileExtensions, bool receiveNonAllowedItems = true, required DropViewLoadingCallback loading, required DropViewDataReceivedCallback dataReceived, Color? backgroundColor, Color? borderColor, int? borderWidth, DropViewCreatedCallback? created}) -
A widget that adds drag and drop functionality
const
Properties
-
allowedDropDataTypes
→ List<
DropDataType> ? -
Restrict the types of data that can be dropped.
final
-
allowedDropFileExtensions
→ List<
String> ? -
Restrict the types of files that can be dropped in addition to files allowed by
allowedDropDataTypes
. All file types included inallowedDropDataTypes
will be accepted if this is null.final - allowedTotal → int
-
number of items allowed to be dropped at a time
final
- backgroundColor → Color?
-
background color of the dropview
final
- borderColor → Color?
-
border color of the dropview
final
- borderWidth → int?
-
border width of the dropview
final
- child → Widget
-
the child container in the dropview
final
- created → DropViewCreatedCallback?
-
triggered when a controller has been initiated
final
- dataReceived → DropViewDataReceivedCallback
-
triggered when the data has been received
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- loading → DropViewLoadingCallback
-
triggered when the data is dropped into the dropview
final
- receiveNonAllowedItems → bool
-
Receive all dropped items if at least one item is allowed. Defaults to true
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< NativeDropView> -
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
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
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