# contains method

1. @override

bool contains(

1. Object? item

)
override

Returns a value indicating whether a specified string occurs in this string array.

param item The string to seek. return true if the item parameter occurs within this string array; otherwise, false. throws BiosealException An error has occurred during Bioseal Library execution.

## Implementation

    @override
    bool contains(Object? item) {
      String? nItem = item as String?;
      Pointer<Char>? pItem = nItem?.toNativeUtf8().cast<Char>();
      Pointer<Bool> pResult = calloc();
      try {
        var err = biosealSDK.id3BiosealStringArray_Contains(_pHandle.value, pItem ?? nullptr, pResult);
        if (err != BiosealError.success.value) {
          throw BiosealException(err);
        }
        final vResult = pResult.value;
        return vResult;
      } finally {
        if (pItem != null) {
          calloc.free(pItem);
        }
        calloc.free(pResult);
      }
    }