Skip to content

报错:'Logger.onLevelChanged' is defined here. #63

Description

@caoshouling

PS D:\workspace\mobileSpace\flutter_githubclient_app> flutter packages pub run json_model
Flutter assets will be downloaded from https://storage.flutter-io.cn. Make sure you trust this source!
Failed to build json_model:json_model:
/C:/Users/Administrator/AppData/Local/Pub/Cache/hosted/pub.flutter-io.cn/build_runner_core-7.2.2/lib/src/logging/build_for_input_logger.dart:13:7: Error: The non-abstract class 'BuildForInputLogger' is missing implementations for these members:

  • Logger.onLevelChanged
    Try to either
  • provide an implementation,
  • mark the class as abstract, or
  • provide a 'noSuchMethod' implementation.

class BuildForInputLogger implements Logger {
^^^^^^^^^^^^^^^^^^^
/C:/Users/Administrator/AppData/Local/Pub/Cache/hosted/pub.flutter-io.cn/logging-1.2.0/lib/src/logger.dart:162:22: Context: 'Logger.onLevelChanged' is defined here.
Stream<Level?> get onLevelChanged {
^^^^^^^^^^^^^^

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions