copyWith method

StreamMessageSearchListTile copyWith({
  1. Key? key,
  2. GetMessageResponse? messageResponse,
  3. Widget? leading,
  4. Widget? title,
  5. Widget? subtitle,
  6. Widget? trailing,
  7. GestureTapCallback? onTap,
  8. GestureLongPressCallback? onLongPress,
  9. Color? tileColor,
  10. VisualDensity? visualDensity,
  11. EdgeInsetsGeometry? contentPadding,
})

Creates a copy of this tile but with the given fields replaced with the new values.

Implementation

StreamMessageSearchListTile copyWith({
  Key? key,
  GetMessageResponse? messageResponse,
  Widget? leading,
  Widget? title,
  Widget? subtitle,
  Widget? trailing,
  GestureTapCallback? onTap,
  GestureLongPressCallback? onLongPress,
  Color? tileColor,
  VisualDensity? visualDensity,
  EdgeInsetsGeometry? contentPadding,
}) =>
    StreamMessageSearchListTile(
      key: key ?? this.key,
      messageResponse: messageResponse ?? this.messageResponse,
      leading: leading ?? this.leading,
      title: title ?? this.title,
      subtitle: subtitle ?? this.subtitle,
      trailing: trailing ?? this.trailing,
      onTap: onTap ?? this.onTap,
      onLongPress: onLongPress ?? this.onLongPress,
      tileColor: tileColor ?? this.tileColor,
      visualDensity: visualDensity ?? this.visualDensity,
      contentPadding: contentPadding ?? this.contentPadding,
    );