isCastError top-level constant

  1. @Deprecated('CastError has been deprecated in favor of TypeError. ' 'Use `isA<TypeError>()` or, if you need compatibility with older SDKs, ' 'use `isA<CastError>()` and ignore the deprecation.')
TypeMatcher const isCastError

A matcher for CastError.

Implementation

@Deprecated('CastError has been deprecated in favor of TypeError. '
    'Use `isA<TypeError>()` or, if you need compatibility with older SDKs, '
    'use `isA<CastError>()` and ignore the deprecation.')
const isCastError = TypeMatcher<CastError>();