ChannelLastMessageDate constructor

ChannelLastMessageDate({
  1. Key? key,
  2. required Channel channel,
  3. TextStyle? textStyle,
})

Creates a new instance of the ChannelLastMessageDate widget.

Implementation

ChannelLastMessageDate({
  super.key,
  required this.channel,
  this.textStyle,
}) : assert(
        channel.state != null,
        'Channel ${channel.id} is not initialized',
      );