copyWith method
StreamUserGridTile
copyWith({
- Key? key,
- User? user,
- Widget? child,
- GestureTapCallback? onTap,
- GestureLongPressCallback? onLongPress,
Creates a copy of this tile but with the given fields replaced with the new values.
Implementation
StreamUserGridTile copyWith({
Key? key,
User? user,
Widget? child,
Widget? footer,
GestureTapCallback? onTap,
GestureLongPressCallback? onLongPress,
}) =>
StreamUserGridTile(
key: key ?? this.key,
user: user ?? this.user,
footer: footer ?? this.footer,
onTap: onTap ?? this.onTap,
onLongPress: onLongPress ?? this.onLongPress,
child: child ?? this.child,
);