expectedLibraryName function

String expectedLibraryName({
  1. required NativeTarget target,
  2. required String stem,
})

Expected library filename for a given target and library stem.

Uses target to determine the platform-specific naming convention and stem as the library's base name (e.g., tdjson).

Implementation

String expectedLibraryName({
  required NativeTarget target,
  required String stem,
}) {
  return canonicalLibraryName(
    target: target,
    libraryStem: stem,
    payload: DynamicLibraryPayload(libraryStem: stem),
  );
}