isMockData method

bool isMockData(
  1. DataType type
)

Check whether mock data is enabled for a given data type.

Parameters

Returns

  • bool: True if mock data is active for the specified type, false otherwise.

Implementation

bool isMockData(final DataType type) {
  final OperationResult resultString = objectMethod(
    pointerId,
    'DataSourceContainer',
    'isMockData',
    args: type.id,
  );

  return resultString['result'];
}