resolver property

MimeTypeResolver get resolver

Returns the inner MimeTypeResolver.

Implementation

static MimeTypeResolver get resolver {
  if (_resolver == null) {
    _resolver = MimeTypeResolver();

    // TODO: Fill the resolver with more MIME-types.
    _resolver?.addMagicNumber(
      [0x00, 0x00, 0x00, 0x00, 0x6D, 0x6F, 0x6F, 0x76],
      'video/quicktime',
      mask: [0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0xFF],
    );
  }

  return _resolver!;
}