isEntryPoint property

  1. @override
bool get isEntryPoint
override

Whether the function is an entry point, i.e. a top-level function and has the name main.

Implementation

@override
bool get isEntryPoint => name == FunctionElement.kMainFunctionName;