contains method

bool contains({
  1. required String item,
  2. Object? prereleases,
})

contains

python docstring

Determines if the given item is contained within this specifier.

python source

@abc.abstractmethod
    def contains(self, item: str, prereleases: Optional[bool] = None) -> bool:
        """
        Determines if the given item is contained within this specifier.
        """

Implementation

bool contains({
  required String item,
  Object? prereleases,
}) =>
    getFunction("contains").call(
      <Object?>[
        item,
        prereleases,
      ],
      kwargs: <String, Object?>{},
    );