AndroidResource class
Class that represents an Android resource file.
Constructors
- AndroidResource({String? defPackage, String? defType, required String name})
Properties
- defPackage ↔ String?
-
Optional default package to find, if "package:" is not included in the name.
Can be
null
to require an explicit package.getter/setter pair - defType ↔ String?
-
Optional default resource type to find, if "type/" is not included in the name.
Can be
null
to require an explicit type.getter/setter pair - hashCode → int
-
The hash code for this object.
no setterinherited
- name ↔ String
-
Android resource name.
getter/setter pair
- 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
-
toJson(
) → Map< String, dynamic> - Converts instance to a map.
-
toMap(
) → Map< String, dynamic> - Converts instance to a map.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
anim(
{required String name, String? defPackage}) → AndroidResource -
drawable(
{required String name, String? defPackage}) → AndroidResource -
fromMap(
Map< String, dynamic> ? map) → AndroidResource? - Gets a possible AndroidResource instance from a Map value.
-
id(
{required String name, String? defPackage}) → AndroidResource -
layout(
{required String name, String? defPackage}) → AndroidResource