generate method

  1. @override
Widget generate(
  1. Context context
)
override

Implementation

@override
Widget generate(Context context) {
  var builds = <Widget>[];
  if (left) builds.add(build(Location.rel(x: rel, y: 0, z: 0)));
  if (right) builds.add(build(Location.rel(x: -rel, y: 0, z: 0)));
  if (top) builds.add(build(Location.rel(x: 0, y: rel, z: 0)));
  if (bottom) builds.add(build(Location.rel(x: 0, y: -rel, z: 0)));
  if (front) builds.add(build(Location.rel(x: 0, y: 0, z: rel)));
  if (back) builds.add(build(Location.rel(x: 0, y: 0, z: -rel)));
  return For.of(builds);
}