SourceBytesBot constructor

const SourceBytesBot({
  1. Key? key,
  2. String? userId,
  3. required String botId,
  4. required String baseUrl,
  5. double? width,
  6. double? height,
  7. dynamic onLogin(
    1. String email,
    2. String password
    )?,
  8. dynamic onBotMessage(
    1. String? message
    )?,
  9. dynamic sendMessageOnTap(
    1. String message
    )?,
  10. bool showWelcomeScreen = true,
  11. bool showBackButton = true,
  12. Function? backOnTap,
})

Implementation

const SourceBytesBot({
  super.key,
  this.userId,
  required this.botId,
  required this.baseUrl,
  this.width,
  this.height,
  this.onLogin,
  this.onBotMessage,
  this.sendMessageOnTap,
  this.showWelcomeScreen = true,
  this.showBackButton = true,
  this.backOnTap,
});