copyWith method

StreamUserListTile copyWith({
  1. Key? key,
  2. User? user,
  3. Widget? leading,
  4. Widget? title,
  5. Widget? subtitle,
  6. Widget? selectedWidget,
  7. bool? selected,
  8. GestureTapCallback? onTap,
  9. GestureLongPressCallback? onLongPress,
  10. Color? tileColor,
  11. VisualDensity? visualDensity,
  12. 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,
    );