init static method

DatabasePlugin Function(DevbarState) init({
  1. required DatabaseAdapter database,
})

One plugin per database: db:main and db:cache are two init calls in the devbar's plugin list, not one call with a list — a panel is the unit every surface renders.

Implementation

static DatabasePlugin Function(DevbarState) init({
  required DatabaseAdapter database,
}) =>
    (_) => DatabasePlugin._(DatabasePanelSource(database));