Skip to content

Conversation

@mfederowicz
Copy link
Contributor

Summary

AVOID using library private types in public APIs.

For the purposes of this lint, a public API is considered to be any top-level or member declaration unless the declaration is library private or contained in a declaration that's library private. The following uses of types are checked:

  • the return type of a function or method,
  • the type of any parameter of a function or method,
  • the bound of a type parameter to any function, method, class, mixin, extension's extended type, or type alias,
  • the type of any top level variable or field,
  • any type used in the declaration of a type alias (for example typedef F = _Private Function();), or
  • any type used in the on clause of an extension or a mixin

@mfederowicz mfederowicz requested a review from a team as a code owner October 2, 2022 00:42
…pes_in_public_api

# Conflicts:
#	lib/UI/exercise/set_widget.dart
#	lib/UI/exercise/totals_widget.dart
@stale
Copy link

stale bot commented Oct 18, 2022

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
Thank you for your contributions.

@stale stale bot added the stale label Oct 18, 2022
@stale stale bot closed this Oct 25, 2022
@tenshiAMD tenshiAMD added pinned and removed stale labels Oct 28, 2022
@tenshiAMD tenshiAMD reopened this Oct 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants