WebviewRefresher class
a wrapper of webview
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- WebviewRefresher
Constructors
-
WebviewRefresher({Key? key, required WebViewController controller, Set<
Factory< gestureRecognizers = const <Factory<OneSequenceGestureRecognizer>>{}, RefreshCallback? onRefresh, TargetPlatform? platform, DefaultRefreshBuilder androidRefresherBuilder = _defaultAndroidBuilder, DefaultRefreshBuilder iosRefreshBuilder = _defaultIosBuilder, DefaultRefreshBuilder defaultRefresherBuilder = _defaultRefreshBuilder, Widget customBuilder(RefreshCallback? onRefresh, Widget child, ScrollController controller)?})OneSequenceGestureRecognizer> > -
const
Properties
- androidRefresherBuilder → DefaultRefreshBuilder
-
The androidRefresherBuilder argument will be used to build the android refresher.
final
- controller → WebViewController
-
a
WebviewController, same asWebViewWidget's controllerfinal - customBuilder → Widget Function(RefreshCallback? onRefresh, Widget child, ScrollController controller)?
-
final
- defaultRefresherBuilder → DefaultRefreshBuilder
-
The defaultRefresherBuilder argument will be used to build other platform refresher.
final
-
gestureRecognizers
→ Set<
Factory< OneSequenceGestureRecognizer> > -
same as
WebViewWidget's gestureRecognizersfinal - hashCode → int
-
The hash code for this object.
no setterinherited
- iosRefreshBuilder → DefaultRefreshBuilder
-
The
iosRefresherBuilderargument will be used to build the ios refresher.final - key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- onRefresh → RefreshCallback?
-
The onRefresh argument will be called when pulled to trigger a refresh.
final
- platform → TargetPlatform?
-
The
platoformargument will be used to determine the platform-specificfinal - 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< WebviewRefresher> -
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, int wrapWidth = 65}) → 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
Static Methods
-
prebuildAdaptiveRefresher(
RefreshCallback? onRefresh, Widget child, ScrollController controller) → Widget - pre-build adaptive refresher