toJson method

  1. @Deprecated('Use NativePlatform.current!.toJson instead')
String toJson()
inherited

A JSON-encoded representation of platform information.

Warning

This property is deprecated on Platform. It is only implemented by the legacy LocalPlatform and FakePlatform classes, and cannot be accessed through Platform.current. Use NativePlatform to access these properties instead, accessed as NativePlatform.current.

Can be emitted for debugging, or be used as input to a fake environment used for debugging.

Implementation

@Deprecated('Use NativePlatform.current!.toJson instead')
String toJson() =>
    throw UnimplementedError('Use NativePlatform.current!.toJson instead');