Implementation
PerformanceMeasure? measure(String measureName,
[measureOptions_OR_startMark, String? endMark]) {
if (measureOptions_OR_startMark == null && endMark == null) {
return _measure_1(measureName);
}
if ((measureOptions_OR_startMark is String ||
measureOptions_OR_startMark == null) &&
endMark == null) {
return _measure_2(measureName, measureOptions_OR_startMark);
}
if ((measureOptions_OR_startMark is String ||
measureOptions_OR_startMark == null)) {
return _measure_3(measureName, measureOptions_OR_startMark, endMark);
}
if ((measureOptions_OR_startMark is Map) && endMark == null) {
var measureOptions_1 =
convertDartToNative_Dictionary(measureOptions_OR_startMark);
return _measure_4(measureName, measureOptions_1);
}
throw new ArgumentError("Incorrect number or type of arguments");
}