FFChatPage constructor

FFChatPage({
  1. bool? allowImages,
  2. FFColor? backgroundColor,
  3. FFChatPage_TimeDisplaySetting? timeDisplaySetting,
  4. FFBoxDecoration? currentUserBoxDecoration,
  5. FFBoxDecoration? otherUsersBoxDecoration,
  6. FFText? currentUserTextStyle,
  7. FFText? otherUsersTextStyle,
  8. FFText? inputHintTextStyle,
  9. FFText? inputTextStyle,
  10. FFColor? unreadColor,
  11. bool? sendNotifications,
  12. bool? notificationsHaveSound,
  13. int? maxLoadedMessages,
})

Implementation

factory FFChatPage({
  $core.bool? allowImages,
  FFColor? backgroundColor,
  FFChatPage_TimeDisplaySetting? timeDisplaySetting,
  FFBoxDecoration? currentUserBoxDecoration,
  FFBoxDecoration? otherUsersBoxDecoration,
  FFText? currentUserTextStyle,
  FFText? otherUsersTextStyle,
  FFText? inputHintTextStyle,
  FFText? inputTextStyle,
  FFColor? unreadColor,
  $core.bool? sendNotifications,
  $core.bool? notificationsHaveSound,
  $core.int? maxLoadedMessages,
}) {
  final result = create();
  if (allowImages != null) result.allowImages = allowImages;
  if (backgroundColor != null) result.backgroundColor = backgroundColor;
  if (timeDisplaySetting != null)
    result.timeDisplaySetting = timeDisplaySetting;
  if (currentUserBoxDecoration != null)
    result.currentUserBoxDecoration = currentUserBoxDecoration;
  if (otherUsersBoxDecoration != null)
    result.otherUsersBoxDecoration = otherUsersBoxDecoration;
  if (currentUserTextStyle != null)
    result.currentUserTextStyle = currentUserTextStyle;
  if (otherUsersTextStyle != null)
    result.otherUsersTextStyle = otherUsersTextStyle;
  if (inputHintTextStyle != null)
    result.inputHintTextStyle = inputHintTextStyle;
  if (inputTextStyle != null) result.inputTextStyle = inputTextStyle;
  if (unreadColor != null) result.unreadColor = unreadColor;
  if (sendNotifications != null) result.sendNotifications = sendNotifications;
  if (notificationsHaveSound != null)
    result.notificationsHaveSound = notificationsHaveSound;
  if (maxLoadedMessages != null) result.maxLoadedMessages = maxLoadedMessages;
  return result;
}