Pck constructor

const Pck({
  1. String? name,
  2. String? main,
  3. String? load,
})

The @Pck() annotation works similar to @Func. You annotate a File List variable and it generates a Widget for this Pack.

@Pck
name namespace of this pack
main path of the main function
load path of the load function
@Pck(name: 'namespace', main: 'main', load: 'load')
final List<File> myPack = [
  LoadFile,
  MainFile
]

Implementation

const Pck({
  this.name,
  this.main,
  this.load,
});