generate method

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

Implementation

@override
Widget generate(Context context) {
  String? name;
  if (custom != null) {
    name = custom!;
  } else {
    IndexedFile._indexed[this.name] = getId() + 1;
    name = this.name + getId().toString();
  }
  if (path != null) name = '${path!.trim()}/$name';
  return File(
    name,
    child: child,
    execute: execute,
    pack: pack,
    inheritFolder: inheritFolder,
  );
}