icon_theme_data.dart 546 Bytes
Newer Older
Adam Barth's avatar
Adam Barth committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

enum IconThemeColor { white, black }

class IconThemeData {
  const IconThemeData({ this.color });
  final IconThemeColor color;

  bool operator ==(dynamic other) {
    if (other is! IconThemeData)
      return false;
    final IconThemeData typedOther = other;
15
    return color == typedOther.color;
Adam Barth's avatar
Adam Barth committed
16 17 18 19 20 21
  }

  int get hashCode => color.hashCode;

  String toString() => '$color';
}