buildPanel static method

Widget buildPanel({
  1. DbLensConfig? config,
  2. DbLensThemeData? theme,
  3. DbLensController? controller,
})

Widget inspector yang bisa di-embed di widget tree konsumen (mis. tab debug/QA aplikasi sendiri) — tanpa navigasi.

Implementation

static Widget buildPanel({
  DbLensConfig? config,
  DbLensThemeData? theme,
  DbLensController? controller,
}) {
  if (kReleaseMode) return const SizedBox.shrink();

  final panelConfig = config ?? const DbLensConfig();

  return DbLensThemeScope(
    theme: DbLensTheme(theme),
    child: DbLensPanel(config: panelConfig, controller: controller),
  );
}