NativeResource class
Retrieve values stored in the native resource system, like .plist files on iOS
and .xml files in the res/values
folder on Android.
Constructors
- NativeResource()
-
Singleton constructor.
factory
- NativeResource.private(MethodChannel _channel)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
read(
{required String androidResourceName, required String iosPlistKey, String? iosPlistFile}) → Future< String> - Reads a string stored in the platform resource system.
-
readRaw(
{required String resourceName}) → Future< Uint8List> - Reads raw stored in the platform resource system.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited