asStrait method

RestActionAble asStrait({
  1. required dynamic run(
    1. List<Widget>
    ),
  2. String targetFilePath = 'objd',
  3. String? targetFileName,
  4. bool encapsulate = true,
})

Generates a Execute Widget strait (execute as the entity)

entity.asStrait(run: (List<Widget> cont) {
...
}).queue()

Implementation

RestActionAble asStrait({
  required Function(List<Widget>) run,
  String targetFilePath = 'objd',
  String? targetFileName,
  bool encapsulate = true,
}) =>
    StraitWidget.builder.create(Execute.strait(
      run: run,
      targetFilePath: targetFilePath,
      targetFileName: targetFileName,
      encapsulate: encapsulate,
    ).as(this));