UserItem constructor

const UserItem({
  1. Key? key,
  2. required User user,
  3. void onTap(
    1. User
    )?,
  4. void onLongPress(
    1. User
    )?,
  5. void onImageTap(
    1. User
    )?,
  6. bool selected = false,
  7. bool showLastOnline = true,
})

Instantiate a new UserItem

Implementation

const UserItem({
  Key? key,
  required this.user,
  this.onTap,
  this.onLongPress,
  this.onImageTap,
  this.selected = false,
  this.showLastOnline = true,
}) : super(key: key);