isLibrary abstract method

bool isLibrary(
  1. Asset asset
)

Checks if an asset represents a Dart library.

This determines if an asset is a Dart file that can be treated as a library, vs a part file.

@param asset The asset to check @return true if the asset is a Dart library

Implementation

bool isLibrary(Asset asset);