copyWith method

StreamUserGridTile copyWith({
  1. Key? key,
  2. User? user,
  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

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,
    );