changeTheme static method

Future<void> changeTheme(
  1. ElepayTheme theme
)

Change the theme of elepay SDK UI.

Note:

  1. This method must be called after elepay SDK is initialized and before the payment processing.
  2. iOS only supports this method on iOS 13 and above.

Implementation

static Future<void> changeTheme(ElepayTheme theme) async {
  await _channel
      .invokeMethod("changeTheme", {"theme": theme.stringPresentation});
}