PowerBiFilter class

Represents a dynamic filter to apply to an embedded Power BI report.

Constructors

PowerBiFilter({required String table, required String column, required List values, String schema = 'http://powerbi.com/product/schema#basic', String operator = 'In', int filterType = 1, bool requireSingleSelection = true, bool isLockedInViewMode = true, bool isHiddenInViewMode = true})
const

Properties

column → String
The target column name in the Power BI table (e.g., 'companyID').
final
filterType → int
The Power BI filter type (1 = BasicFilter).
final
hashCode → int
The hash code for this object.
no setterinherited
isHiddenInViewMode → bool
Whether the filter is hidden in view mode.
final
isLockedInViewMode → bool
Whether the filter is locked in view mode.
final
operator → String
The filter operator (e.g., 'In', 'NotIn', 'All').
final
requireSingleSelection → bool
Whether single selection is required for this filter.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
schema → String
The Power BI filter schema URL.
final
table → String
The target table name in the Power BI dataset (e.g., 'getCompanies').
final
values → List
The list of values to filter by (e.g., ['company_1', 'company_2']).
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Converts this filter into a JSON-compatible map for the Power BI JS SDK.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited