isEmptyLine method

bool isEmptyLine(
  1. Operation? previous,
  2. Operation target
)

Implementation

bool isEmptyLine(Operation? previous, Operation target) {
  return (previous == null || previous.data.endsWith('\n')) && target.data.startsWith('\n');
}