lastBlockIn method

Block? lastBlockIn(
  1. String propertyId
)

The last block under propertyId (e.g. the one just appended), or null if that property has no blocks.

Implementation

Block? lastBlockIn(String propertyId) {
  final list = blocksIn(propertyId);
  return list.isEmpty ? null : list.last;
}