MethodChannelMiPay class
An implementation of MiPayPlatform that uses method channels.
- Inheritance
-
- Object
- PlatformInterface
- MiPayPlatform
- MethodChannelMiPay
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- methodChannel → MethodChannel
-
The method channel used to interact with the native platform.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addCallback(
SDKCallback callback) → void -
override
-
dispose(
) → void -
override
-
initSDK(
{required String appId, required String appKey, bool isDebug = false}) → Future< void> -
override
-
isLogin(
) → Future< bool> -
override
-
login(
) → Future< void> -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pay(
{required int feeValue, String? orderId}) → Future< void> -
override
-
payProduct(
{required String productCode, required int amount, String? orderId}) → Future< void> -
override
-
subscribe(
{required int feeValue, String? orderId}) → Future< void> -
override
-
subscribeProduct(
{required String productCode, required int amount, String? orderId}) → Future< void> -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited