instance property

  1. @Deprecated('Use YPay.initialize(modules: [quickPayModule(...)]) instead.')
YandexQuickPay get instance

Implementation

@Deprecated(
  'Use YPay.initialize(modules: [quickPayModule(...)]) instead.',
)
static YandexQuickPay get instance {
  if (_instance == null) {
    throw StateError(
      'YandexQuickPay must be initialized before use. '
      'Call YandexQuickPay.initialize() first.',
    );
  }
  return _instance!;
}