FirebaseRtdbChannel constructor
FirebaseRtdbChannel({})
Creates a FirebaseRtdbChannel.
path is the RTDB path where messages are stored, e.g.
'channels/room1/messages'.
maxMessages limits the number of historic messages loaded on connect.
Implementation
FirebaseRtdbChannel({
required this.channelId,
required String path,
FirebaseDatabase? database,
int maxMessages = 100,
}) : _path = path,
_db = database ?? FirebaseDatabase.instance,
_maxMessages = maxMessages;