setObject method

Future<void> setObject(
  1. String jsonObject,
  2. String? rootTitle
)

Sets a JSON-compliant object to be displayed in the sidebar pane. jsonObject An object to be displayed in context of the inspected page. Evaluated in the context of the caller (API client). rootTitle An optional title for the root of the expression tree. returns A callback invoked after the sidebar is updated with the object.

Implementation

Future<void> setObject(
  String jsonObject,
  String? rootTitle,
) async {
  await _wrapped
      .setObject(
        jsonObject,
        rootTitle,
      )
      .toDart;
}