mno_shared 0.1.3 copy "mno_shared: ^0.1.3" to clipboard
mno_shared: ^0.1.3 copied to clipboard

Contains the definitions of the custom types (model) used across the Readium-2 Dart projects.

example/lib/main.dart

// Copyright (c) 2021 Mantano. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

import 'package:mno_shared/publication.dart';

void main() {
  Link link1 = Link(href: "found", rels: {"rel1"});
  Link link2 = Link(href: "found", rels: {"rel2"});
  Link link3 = Link(href: "found", rels: {"rel3"});
  Publication publication = Publication(
      manifest: Manifest(
          metadata: Metadata(
              localizedTitle: LocalizedString.fromString("Title"),
              languages: ["en"]),
          links: [Link(href: "other"), link1],
          readingOrder: [Link(href: "other"), link2],
          resources: [Link(href: "other"), link3]));
  print("manifest: ${publication.manifest.toJson()}");
}
0
likes
80
pub points
29%
popularity

Publisher

verified publishermantano.com

Contains the definitions of the custom types (model) used across the Readium-2 Dart projects.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

archive, collection, crypto, dartx, dfunc, equatable, fimber, http, image, intl, meta, mno_commons, path, universal_io, xml

More

Packages that depend on mno_shared