handles method

  1. @override
bool handles(
  1. String fileName,
  2. Uint8List bytes
)
override

Whether this decoder wants the file. fileName may be empty; bytes is the whole file, so a decoder with no useful suffix can sniff its magic.

Implementation

@override
bool handles(String fileName, Uint8List bytes) =>
    fileName.toLowerCase().endsWith('.f3d') || isF3dFile(bytes);