Scalar constructor

Scalar({
  1. String route = '/_docs',
  2. String? theme,
  3. String? layout,
  4. String? title,
})

Creates a Scalar UI configuration.

Implementation

factory Scalar({
  String route = '/_docs',
  String? theme,
  String? layout,
  String? title,
}) => Scalar._({
  'type': 'scalar',
  'route': route,
  'theme': ?theme,
  'layout': ?layout,
  'title': ?title,
});