mirrored_repositories/awesome-flutter/examples/flutterfire/packages/cloud_firestore/cloud_firestore_platform_interface/lib/src
// Copyright 2017, the Chromium project authors.  Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

/// A representation of a `FieldValue` that lives in the platform interface
/// and wraps an opaque value.
///
/// The wrapped value is not in the app-facing interface, but concrete
/// platform implementations can use [getDelegate()] to look it up.
class FieldValuePlatform {
  /// Constructor
  FieldValuePlatform(this._delegate);

  final dynamic _delegate;

  /// Used by platform implementers to obtain a value suitable for being passed
  /// through to the underlying implementation.
  static dynamic getDelegate(FieldValuePlatform fieldValue) =>
      fieldValue._delegate;
}
