TelegramLoginButton constructor

const TelegramLoginButton({
  1. Key? key,
  2. required String botId,
  3. required String botDomain,
  4. required String phoneNumber,
  5. Duration timeout = const Duration(seconds: 60),
  6. dynamic onAuthSuccess(
    1. TelegramUser
    )?,
  7. dynamic onAuthError(
    1. dynamic
    )?,
  8. Widget? child,
  9. ButtonStyle? style,
  10. bool showLoading = true,
})

Implementation

const TelegramLoginButton({
  Key? key,
  required this.botId,
  required this.botDomain,
  required this.phoneNumber,
  this.timeout = const Duration(seconds: 60),
  this.onAuthSuccess,
  this.onAuthError,
  this.child,
  this.style,
  this.showLoading = true,
}) : super(key: key);