@@ -267,8 +267,9 @@ class ChromeAppInstanceHelper {
267267 objectId,
268268 offset: offset,
269269 count: count,
270- length:
271- metaData.kind != InstanceKind .kPlainInstance ? metaData.length : null ,
270+ length: metaData.kind != InstanceKind .kPlainInstance
271+ ? metaData.length
272+ : null ,
272273 );
273274
274275 final dartProperties = await _dartFieldsFor (properties, remoteObject);
@@ -307,9 +308,8 @@ class ChromeAppInstanceHelper {
307308 // We do this in in awkward way because we want the keys and values, but we
308309 // can't return things by value or some Dart objects will come back as
309310 // values that we need to be RemoteObject, e.g. a List of int.
310- final expression =
311- globalToolConfiguration.loadStrategy.dartRuntimeDebugger
312- .getMapElementsJsExpression ();
311+ final expression = globalToolConfiguration.loadStrategy.dartRuntimeDebugger
312+ .getMapElementsJsExpression ();
313313
314314 final keysAndValues = await inspector.jsCallFunctionOn (map, expression, []);
315315 final keys = await inspector.loadField (keysAndValues, 'keys' );
@@ -507,10 +507,12 @@ class ChromeAppInstanceHelper {
507507
508508 // Collect named fields in the requested range.
509509 // Account for already collected positional fields.
510- final namedRangeOffset =
511- offset == null ? null : _remainingCount (positionalCount, offset);
512- final namedRangeCount =
513- count == null ? null : _remainingCount (positionalRangeCount, count);
510+ final namedRangeOffset = offset == null
511+ ? null
512+ : _remainingCount (positionalCount, offset);
513+ final namedRangeCount = count == null
514+ ? null
515+ : _remainingCount (positionalRangeCount, count);
514516 final namedInstance = await instanceFor (
515517 namedObject,
516518 offset: namedRangeOffset,
@@ -537,9 +539,8 @@ class ChromeAppInstanceHelper {
537539 // We do this in in awkward way because we want the keys and values, but we
538540 // can't return things by value or some Dart objects will come back as
539541 // values that we need to be RemoteObject, e.g. a List of int.
540- final expression =
541- globalToolConfiguration.loadStrategy.dartRuntimeDebugger
542- .getRecordFieldsJsExpression ();
542+ final expression = globalToolConfiguration.loadStrategy.dartRuntimeDebugger
543+ .getRecordFieldsJsExpression ();
543544
544545 final result = await inspector.jsCallFunctionOn (record, expression, []);
545546 final fieldNameElements = await _recordShapeFields (
@@ -676,9 +677,8 @@ class ChromeAppInstanceHelper {
676677 // We do this in in awkward way because we want the names and types, but we
677678 // can't return things by value or some Dart objects will come back as
678679 // values that we need to be RemoteObject, e.g. a List of int.
679- final expression =
680- globalToolConfiguration.loadStrategy.dartRuntimeDebugger
681- .getRecordTypeFieldsJsExpression ();
680+ final expression = globalToolConfiguration.loadStrategy.dartRuntimeDebugger
681+ .getRecordTypeFieldsJsExpression ();
682682
683683 final result = await inspector.jsCallFunctionOn (record, expression, []);
684684 final fieldNameElements = await _recordShapeFields (
@@ -707,9 +707,8 @@ class ChromeAppInstanceHelper {
707707 final length = metaData.length;
708708 final objectId = remoteObject.objectId;
709709 if (objectId == null ) return null ;
710- final expression =
711- globalToolConfiguration.loadStrategy.dartRuntimeDebugger
712- .getSetElementsJsExpression ();
710+ final expression = globalToolConfiguration.loadStrategy.dartRuntimeDebugger
711+ .getSetElementsJsExpression ();
713712
714713 final result = await inspector.jsCallFunctionOn (
715714 remoteObject,
@@ -812,9 +811,10 @@ class ChromeAppInstanceHelper {
812811 //
813812 // For maps and lists it's more complicated. Treat the actual SDK versions
814813 // of these as special.
815- final fieldNameExpression =
816- globalToolConfiguration.loadStrategy.dartRuntimeDebugger
817- .getObjectFieldNamesJsExpression ();
814+ final fieldNameExpression = globalToolConfiguration
815+ .loadStrategy
816+ .dartRuntimeDebugger
817+ .getObjectFieldNamesJsExpression ();
818818 final result = await inspector.jsCallFunctionOn (
819819 remoteObject,
820820 fieldNameExpression,
@@ -832,10 +832,9 @@ class ChromeAppInstanceHelper {
832832 /// be something returned by value from Chrome, e.g. number, boolean, or
833833 /// String.
834834 Future <InstanceRef ?> instanceRefFor (Object value) {
835- final remote =
836- value is RemoteObject
837- ? value
838- : RemoteObject ({'value' : value, 'type' : _chromeType (value)});
835+ final remote = value is RemoteObject
836+ ? value
837+ : RemoteObject ({'value' : value, 'type' : _chromeType (value)});
839838 return _instanceRefForRemote (remote);
840839 }
841840
0 commit comments