copyWith method

StreamChannelGridTile copyWith({
  1. Key? key,
  2. Channel? channel,
  3. Widget? child,
  4. Widget? footer,
  5. GestureTapCallback? onTap,
  6. 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,
    );