File.strait constructor

File.strait(
  1. String path, {
  2. required dynamic child(
    1. List<Widget>
    ),
  3. bool execute = false,
  4. String? pack,
  5. bool create = true,
  6. Comment? header,
})

File.strait generates the child strait through a method you give using a StraitWidget. You need a StraitWidget on around every strait content

File.strait(path, child: (List<Widget> cont) {
 ...
});

Implementation

factory File.strait(
  String path, {
  required Function(List<Widget>) child,
  bool execute = false,
  String? pack,
  bool create = true,
  Comment? header,
}) =>
    File(
      path,
      child: StraitWidget(child),
      execute: execute,
      pack: pack,
      create: create,
      header: header,
    );