TestPlatform.fromNative constructor

  1. @visibleForTesting
TestPlatform.fromNative(
  1. NativePlatform nativePlatform
)

Creates a TestPlatform with a copy of a given NativePlatform.

Creates a TestNativePlatform from nativePlatform, as by TestNativePlatform.from, and a TestPlatform with that as its Platform.nativePlatform.

Implementation

@visibleForTesting
TestPlatform.fromNative(NativePlatform nativePlatform)
  : this._native(TestNativePlatform.from(nativePlatform));