copyWith method
StreamUserListTile
copyWith({
- Key? key,
- User? user,
- Widget? leading,
- Widget? title,
- Widget? subtitle,
- Widget? selectedWidget,
- bool? selected,
- 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
StreamUserListTile copyWith({
Key? key,
User? user,
Widget? leading,
Widget? title,
Widget? subtitle,
Widget? selectedWidget,
bool? selected,
GestureTapCallback? onTap,
GestureLongPressCallback? onLongPress,
Color? tileColor,
VisualDensity? visualDensity,
EdgeInsetsGeometry? contentPadding,
}) =>
StreamUserListTile(
key: key ?? this.key,
user: user ?? this.user,
leading: leading ?? this.leading,
title: title ?? this.title,
subtitle: subtitle ?? this.subtitle,
selectedWidget: selectedWidget ?? this.selectedWidget,
selected: selected ?? this.selected,
onTap: onTap ?? this.onTap,
onLongPress: onLongPress ?? this.onLongPress,
tileColor: tileColor ?? this.tileColor,
visualDensity: visualDensity ?? this.visualDensity,
contentPadding: contentPadding ?? this.contentPadding,
);