paintRect method
Implementation
Rect? paintRect(String singlePT){
// if(singleCurrentPT != null) return currentSizeRect;
if(debug?.measured ?? false){
var data = measuredPT(singlePT);
if(data != null){
return data;
}
/// 如果没有现成的需要计算
var range = cellRange(singlePT);
if(range != null){
final fromStartCell = debug!.gKeyMappedValues[range.$1];
final toEndCell = debug!.gKeyMappedValues[range.$2];
if(fromStartCell != null && fromStartCell.$2 != null && toEndCell != null && toEndCell.$2 != null){
return fromStartCell.$2!.expandToInclude(toEndCell.$2!);
}
}
}
return null;
}