main property
bool
get
main
A flag that indicates if the current module is the main module that was called when starting the program under Deno.
if (import.meta.main) {
// this was loaded as the main module, maybe do some bootstrapping
}
Implementation
_i2.bool get main => _i4.getProperty(
this,
'main',
);
set
main
(bool value)
Implementation
set main(_i2.bool value) {
_i4.setProperty(
this,
'main',
value,
);
}