MethodChannelDisplayMetrics class
An implementation of DisplayMetricsPlatform that uses method channels.
- Inheritance
-
- Object
- PlatformInterface
- DisplayMetricsPlatform
- MethodChannelDisplayMetrics
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- methodChannel → MethodChannel
-
Registers this class as the default instance of DisplayMetricsPlatform.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getResolution(
) → Future< Size?> -
Method to get device display resolution in pixels
override
-
getSize(
) → Future< Size?> -
Method to get device display size in inches
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited