blob: a0aadd20d485d39b8b2d7f98702c934e4c86f74b [file] [log] [blame]
// Copyright 2018 The Fuchsia 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 'package:flutter/widgets.dart';
import 'surface.dart';
/// A pair of Surface and a Rect position.
class PositionedSurface {
/// The constructor
PositionedSurface({this.surface, this.position});
/// The Surface
final Surface surface;
/// The Position
final Rect position;
String toString() => 'PositionedSurface('
'surface: $surface, position: $position)';
bool operator ==(Object o) => o is PositionedSurface && surface == o.surface;
int get hashCode => surface.hashCode;