as method

RestActionAble as({
  1. List<Widget> children = const [],
  2. String targetFilePath = 'objd',
  3. String? targetFileName,
  4. bool encapsulate = true,
})

Generates a Execute Widget (execute as the entity)

entity.as().run(Say('hi')).queue()

Implementation

RestActionAble as({
  List<Widget> children = const [],
  String targetFilePath = 'objd',
  String? targetFileName,
  bool encapsulate = true,
}) =>
    StraitWidget.builder.create(Execute(
      children: children,
      targetFilePath: targetFilePath,
      targetFileName: targetFileName,
      encapsulate: encapsulate,
    ).as(this));