blob: 40d8f19031115ba22d22ac86bb5fbf9dd698b62b [file] [log] [blame]
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:html' as html;
// Fake interface for the logic that this package needs from (web-only) dart:ui.
// This is conditionally exported so the analyzer sees these methods as available.
// ignore_for_file: avoid_classes_with_only_static_members
// ignore_for_file: camel_case_types
/// Shim for web_ui engine.PlatformViewRegistry
class platformViewRegistry {
/// Shim for registerViewFactory
static bool registerViewFactory(
String viewTypeId, html.Element Function(int viewId) viewFactory) {
return false;
/// Shim for web_ui engine.AssetManager.
class webOnlyAssetManager {
/// Shim for getAssetUrl.
static String getAssetUrl(String asset) => '';
/// Signature of callbacks that have no arguments and return no data.
typedef VoidCallback = void Function();