copyWith method
StreamMessageSearchListTile
copyWith({
- Key? key,
- GetMessageResponse? messageResponse,
- Widget? leading,
- Widget? title,
- Widget? subtitle,
- Widget? trailing,
- GestureTapCallback? onTap,
- GestureLongPressCallback? onLongPress,
- Color? tileColor,
- VisualDensity? visualDensity,
- 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,
);