getDiffByInstance method

ComparisonDiff? getDiffByInstance(
  1. RenderData? first,
  2. RenderData? second
)

Get the difference between two instances RenderObject by Instance.

Implementation

ComparisonDiff? getDiffByInstance(RenderData? first, RenderData? second) {
  if (first == null || second == null) return null;
  return first - second;
}