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