PayUWebView class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- PayUWebView
Constructors
- PayUWebView({Key? key, required dynamic builder(WebViewController? controller, Widget child), required String redirectUrl, dynamic onPaymentEnd(bool paymentSuccessful)?, required PayUOrderResponse orderResponse, Widget? customLoadingWidget})
-
const
Properties
- builder → dynamic Function(WebViewController? controller, Widget child)
-
builder
- required - builder is public in order to accessWebViewController
. This allows devs to wrapchild
with some widgets that provide features like reload, refresh go back etc. See WebViewController documentationfinal - customLoadingWidget → Widget?
-
customLoadingWidget
- optional - Widget - Shows when webView is loading. By default it'sCircularProgressIndicator
final - hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- onPaymentEnd → (dynamic Function(bool paymentSuccessful)?)
-
optional - Function(bool) - by default it does Navigator.of(context).pop(); but you can override this behavior
final
- orderResponse → PayUOrderResponse
-
required - PayUOrderResponse - response object from payuFlutter.prepareOrder(order);
final
- redirectUrl → String
-
required - String - Redirect url is a crucial part of
payu_payment
is setting. It needs to be the same url as in PayU shopWebsite address *:
(shown on screenshot). That URL is where the PayU flow ends in the WebView. The plugin uses that to detect when user payment was successful.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(
) → _PayUWebViewState -
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