asStrait method
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));