propertylistserialization
1.5.0, released 6 months ago by electricbolt.co.nz
iOS‑compatible plist serialization and deserialization library for Dart.
What it does
Converts supported Dart objects to XML or binary Apple property list format and back. Provides methods for reading and writing plist strings or binary data with iOS‑compatible accuracy.
AI-written summary of version 1.5.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to read or write Apple .plist files on any Flutter platform
- Cross‑platform apps must exchange configuration or preferences with iOS/macOS services
Skip it when
- Performance‑critical binary serialization beyond plist needs
- You require custom object mapping or code‑generated models
Strengths
- Accurate XML and binary plist output matching iOS behavior
- Supports both XML and binary formats, including NSKeyedArchiver UID constructs
- Null‑safe and BSD‑2 licensed
Weaknesses
- Only handles basic plist types; no custom object support
- Binary dict ordering may differ for multi‑entry dictionaries
- No code‑generation or declarative API
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 2
import 'package:propertylistserialization/propertylistserialization.dart';
var list = [];
var dict = <String, Object>{'Selected': true, 'IconName': 'largeIcon.png', 'IconSize': 32};
list.add(dict);
var xml = PropertyListSerialization.stringWithPropertyList(list);
var back = PropertyListSerialization.propertyListWithString(xml) as List;
Alternatives
Packages that do the same job and could replace propertylistserialization.
- csv_plus
Fast, zero-dependency CSV parser, encoder, streamer, and query engine for Dart.
82Compare - serial_csv
High-performance CSV encoder/decoder preserving types and nullability
70Compare
Works with
Packages commonly used together with propertylistserialization: ones it builds on, ones built on it, and its own family.