raycast method
Generates a Raycast Widget
entity.raycast(onhit: [
...
]).queue()
Implementation
RestActionAble raycast({
int? max,
double step = 1,
Block through = Blocks.air,
Widget Function(Function, Function)? ray,
List<Widget> onhit = const [],
String scoreName = 'objd_count',
}) =>
StraitWidget.builder.create(
Raycast(
this,
max: max,
step: step,
through: through,
ray: ray,
onhit: onhit,
scoreName: scoreName,
),
);