latestId property Null safety

int latestId

Retrieves the ID of the latest message node

Implementation

int get latestId => isEmpty ? id : children[length - 1].latestId;