canParse method

  1. @override
bool canParse(
  1. String content
)
override

Determines if the content can be parsed by any registered codec

Delegates to the registry's detection mechanism to determine if the content matches any of the registered codecs' formats.

The content parameter is the content to check.

Returns true if at least one registered codec can parse the content.

Implementation

@override
bool canParse(String content) {
  final codec = _registry.detectGraphCodec(content);
  return codec != null;
}