ConstructConfig constructor

const ConstructConfig({
  1. required String name,
  2. required String path,
  3. required String method,
  4. ConstructOptions options = const ConstructOptions.empty(),
  5. bool isServer = false,
  6. bool isBuild = false,
  7. bool optIn = false,
})

Implementation

const ConstructConfig({
  required this.name,
  required this.path,
  required this.method,
  this.options = const ConstructOptions.empty(),
  this.isServer = false,
  this.isBuild = false,
  this.optIn = false,
}) : assert(
       !(isBuild & isServer),
       'Construct cannot be both a build and server construct',
     );