schema property

Map<String, Object> schema
final

Implementation

static final schema = {
  r'$schema': 'http://json-schema.org/draft-06/schema#',
  r'$id': '$id',
  r'$comment':
      'https://api.flutter.dev/flutter/services/SystemUiOverlayStyle-class.html',
  'title': 'SystemUiOverlayStyle',
  'oneOf': [
    ...SchemaHelper.enumSchema(
      [
        'dark',
        'light',
      ],
    ),
    {
      'type': 'object',
      'properties': {
        'statusBarBrightness': SchemaHelper.objectSchema(BrightnessSchema.id),
        'statusBarColor': SchemaHelper.objectSchema(ColorSchema.id),
        'statusBarIconBrightness':
            SchemaHelper.objectSchema(BrightnessSchema.id),
        'systemNavigationBarColor': SchemaHelper.objectSchema(ColorSchema.id),
        'systemNavigationBarContrastEnforced': SchemaHelper.boolSchema,
        'systemNavigationBarDividerColor':
            SchemaHelper.objectSchema(ColorSchema.id),
        'systemNavigationBarIconBrightness':
            SchemaHelper.objectSchema(BrightnessSchema.id),
        'systemStatusBarContrastEnforced': SchemaHelper.boolSchema,
      },
    },
  ],
};