of static method

Returns dark for a dark Theme, otherwise light.

Implementation

static TomlViewerColors of(BuildContext context) =>
    Theme.of(context).brightness == Brightness.dark ? dark : light;