isEdgeLineSplit method

bool isEdgeLineSplit(
  1. Operation? before,
  2. Operation after
)

Implementation

bool isEdgeLineSplit(Operation? before, Operation after) {
  if (before == null) return true; // split at the beginning of a doc
  return before.data.endsWith('\n') || after.data.startsWith('\n');
}